Use SearchValues in .NET 8/10 #760

Open
opened 2026-01-29 22:17:09 +00:00 by claunia · 0 comments
Owner

Originally created by @adamhathcock on GitHub (Jan 14, 2026).

This potentially a better way to look for bytes.

https://learn.microsoft.com/en-us/dotnet/api/system.buffers.searchvalues-1?view=net-10.0

https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-8/

Look for magic bytes.
Look for headers within the stream?

Originally created by @adamhathcock on GitHub (Jan 14, 2026). This potentially a better way to look for bytes. https://learn.microsoft.com/en-us/dotnet/api/system.buffers.searchvalues-1?view=net-10.0 https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-8/ Look for magic bytes. Look for headers within the stream?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#760