Repository navigation
Commit feb58df
committed
zlib: run zlib CPU feature detection at binding init
zlib detects CPU features only on crc32(0, NULL, 0) or when a stream
is initialized. zlib.crc32() calls crc32() with a buffer, so it used
the portable code until some deflate or inflate stream had been
created. Prime the detection when the binding is initialized so
zlib.crc32() uses the SIMD path from the start.1 parent 6bc4d25 commit feb58df
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2184 | 2184 | | |
2185 | 2185 | | |
2186 | 2186 | | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
2187 | 2192 | | |
2188 | 2193 | | |
2189 | 2194 | | |
| |||
0 commit comments