brotli icon indicating copy to clipboard operation
brotli copied to clipboard

`crc32c()` checks SSE42 availability on each call via `cpuid` instruction, which is slow

Open joelhock opened this issue 2 months ago • 0 comments

when calling crc32c() repeatedly on many small buffers, the runtime is dominated by the calls to cpuid (which is slow) to determine SSE42 availability. perhaps this isn't a common use case, but it'd be better to determine that once at initialization time.

joelhock avatar Oct 09 '25 21:10 joelhock