-
-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MimeReader to use Span<T> for built-in intrinsics
It's gotten to a point where .NET Core's built-in SIMD optimizations in Span<T>.IndexOf() have gotten as good or better than my current optimization for scanning until a '\n' in ScanContent(). It also allows me to now use Span<T>.IndexOf() in all other locations that were using `while (*inptr != '\n') inptr++`, so we get improved performance in those locations for free. In some ways, it's sad to see the end of an era - but also exciting because MimeReader is now faster than ever!
- Loading branch information
Showing
2 changed files
with
241 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.