Re: [PATCH] c++/modules: use optimized crc32 from zlib

2024-02-12 Thread Jason Merrill
On 2/12/24 16:49, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? OK. -- >8 -- The current implementation of bytes::calc_crc computes the checksum one byte at a time, and turns out to be quite slow, taking 5% and 15% of time compiling and

[PATCH] c++/modules: use optimized crc32 from zlib

2024-02-12 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- The current implementation of bytes::calc_crc computes the checksum one byte at a time, and turns out to be quite slow, taking 5% and 15% of time compiling and streaming in the std module respectively. We