• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jstedfast / MimeKit / 4.12.0.1630
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: mime-compliance-violations
DEFAULT BRANCH: master
Ran 04 May 2025 08:56PM UTC
Jobs 1
Files 188
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 May 2025 08:46PM UTC coverage: 94.812% (-0.02%) from 94.827%
4.12.0.1630

Pull #1162

coveralls.net

jstedfast
Refactored MimeReader to use ReadOnlySpan<byte> instead of unsafe byte*

The main advantage of this change is to make the code a bit nicer. The
AsyncMimeReader code, especially, becomes a lot nicer with this change.

The other advantage is that Spans don't interfere with the GC like pinned
memory buffers do, which could theoretically mean that using MimeReader is
less likely to result in memory fragmentation (although not sure on the
real-world consequences of the previous code in practice).

The downside is that ReadOnlySpan<byte>.IndexOf() is *slower* than the
current implementation on .NET Framework and possibly also even .NET Core
where the platform architecture does not have support for SIMD.

That's why this PR is a Work-In-Progress and not yet merged to master.
Pull Request #1162: [WIP] Refactored MimeReader to use ReadOnlySpan<byte> instead of unsafe byte*

32036 of 33789 relevant lines covered (94.81%)

0.95 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
99.26
-0.08% D/a/MimeKit/MimeKit/MimeKit/AsyncMimeReader.cs
3
99.01
-0.04% D/a/MimeKit/MimeKit/MimeKit/MimeReader.cs
Jobs
ID Job ID Ran Files Coverage
1 4.12.0.1630.1 04 May 2025 08:56PM UTC 188
94.81
Source Files on build 4.12.0.1630
  • Tree
  • List 188
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1162
  • PR Base - master (#4.12.0.1629)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc