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

jstedfast / MimeKit / 5.0.0.2385
0%

Build:
DEFAULT BRANCH: master
Ran 04 Oct 2026 04:51PM UTC
Jobs 1
Files 238
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 Oct 2026 04:34PM UTC coverage: 95.554% (+0.004%) from 95.55%
5.0.0.2385

push

coveralls.net

jstedfast
Replace Base64.DecodeFromUtf8 in Base64Decoder with custom SIMD kernels

Base64.DecodeFromUtf8() has known bugs in .NET <= 10 (and early .NET 11),
e.g. dotnet/runtime#123311, which caused EnableHardwareAcceleration to be
disabled by default. Replace it with MimeKit's own SSSE3, AVX2 and Arm64
AdvSimd kernels (based on the .NET runtime's Base64DecoderHelper and
Wojciech Mula's base64simd work).

The kernels only decode complete blocks of valid base64 characters. All
alignment, whitespace, line breaks, padding and invalid characters are
routed through the existing scalar Decode() method, so the output is
identical to the scalar decoder, including for in-place decoding and
chunked input. EnableHardwareAcceleration is now enabled by default on
.NET 8+ when SSSE3 or little-endian Arm64 AdvSimd is available.

Internal ScalarDecode/Ssse3Decode/Avx2Decode/AdvSimdDecode entry points
allow the unit tests to exercise each code path directly; tests are
ignored when the host does not support the instruction set.

Performance (.NET 10, Intel Core Ultra 7 268V, photo.b64 ~160 KB):

| Method                             | 76-col CRLF wrapped | Unwrapped |
|------------------------------------|--------------------:|----------:|
| Scalar                             |           138.3 us  |  145.2 us |
| Old hwaccel (Base64.DecodeFromUtf8)|            25.3 us  |    7.6 us |
| New SSSE3                          |            28.8 us  |   10.4 us |
| New AVX2 (default on x64)          |            25.3 us  |    5.5 us |
| Raw Base64.DecodeFromUtf8          |            31.3 us  |    6.2 us |

- ~5.5x faster than scalar for typical line-wrapped MIME content and
  ~26x faster for unwrapped content.
- Matches the old (buggy) DecodeFromUtf8-based path on wrapped content
  and is ~27% faster on unwrapped content.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

40552 of 42439 relevant lines covered (95.55%)

0.96 hits per line

Coverage Regressions

Lines Coverage ∆ File
18
92.34
-7.66% D/a/MimeKit/MimeKit/MimeKit/Encodings/Base64Decoder.cs
17
87.63
-1.93% D/a/MimeKit/MimeKit/MimeKit.Cryptography/OpenPgpContext.cs
4
67.5
-10.0% D/a/MimeKit/MimeKit/MimeKit.Cryptography/OpenPgpDigitalSignature.cs
Jobs
ID Job ID Ran Files Coverage
1 5.0.0.2385.1 04 Oct 2026 04:51PM UTC 238
95.55
Source Files on build 5.0.0.2385
  • Tree
  • List 238
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • adb47cce on github
  • Prev Build on master (#5.0.0.2384)
  • Next Build on master (#5.0.0.2386)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc