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

jstedfast / MimeKit / 5.0.0.2386
0%

Build:
DEFAULT BRANCH: master
Ran 04 Oct 2026 07:08PM 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 06:53PM UTC coverage: 95.576% (+0.02%) from 95.554%
5.0.0.2386

push

coveralls.net

jstedfast
Optimize Base64Validator with a single-pass SIMD kernel

Previously, Base64Validator used SearchValues.IndexOfAnyExcept() to skip
runs of base64 alphabet characters, but that search restarted at every
CR and LF, so line-wrapped content spent most of its time in the scalar
loop.

The new kernel classifies each 32-byte (AVX2) or 16-byte block into
alphabet, line feed and whitespace masks in a single pass. Blocks that
are entirely alphabet characters are simply counted; otherwise the
alphabet count and line tracking (line number, line begin offset and
the per-line issue latches) are updated from the masks. The kernel
stops at the first byte that requires special handling ('=', '*' or an
invalid character) and hands off to the existing scalar code.

Performance (.NET 10, Intel Core Ultra 7 268V, photo.b64 ~160 KB,
old and new measured in the same run):

| Content                   | Old (SearchValues) | New (AVX2) |
|---------------------------|-------------------:|-----------:|
| Wrapped (76-char lines)   |            33.4 us |     6.1 us |
| Unwrapped (single line)   |             2.8 us |     3.6 us |

Line-wrapped content (the norm for MIME) is ~5.5x faster; single-line
content is slightly slower than SearchValues.

Tests now exercise the scalar, Vector128 and Vector256 paths (via an
internal MaxVectorSize knob) with many odd line lengths (1, 3, 5, 15,
17, 31, 33, 75, 77, ...) and random garbage, comparing reported issues
against the scalar path. Odd line lengths were also added to the
Base64Decoder tests.

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

40635 of 42516 relevant lines covered (95.58%)

0.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5.0.0.2386.1 04 Oct 2026 07:08PM UTC 238
95.58
Source Files on build 5.0.0.2386
  • Tree
  • List 238
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 690f4811 on github
  • Prev Build on master (#5.0.0.2385)
  • Next Build on master (#5.0.0.2387)
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