1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-05 19:15:58 +03:00
Files
zstd/contrib
Nick Terrell 1eba76a2d1 [linux-kernel] Don't add -O3 to CFLAGS
It is no longer necessary to get good performance, there is only a small
speed difference between -O2 and -O3, so just stick to the default of
-O2.

This also fixes the stack space usage on parisc. The compiler was buggy
for -O3 and used ~3KB of stack space for several functions. With -O2 the
problem is completely resolved, and stack space is back to a few hundred
bytes.

Additionally, we get a large code size win on gcc:

| Compiler | Before (Bytes) | After (Bytes) | Delta (Bytes) |
|----------|----------------|---------------|---------------|
| gcc-11   |         952754 |        738954 |       -213800 |
| clang-12 |         976290 |        938826 |        -37464 |
2021-11-16 14:29:35 -08:00
..
2019-04-12 11:18:11 -07:00
2018-06-10 18:04:21 -05:00
2020-09-10 18:51:52 -04:00
2020-03-13 09:39:33 -05:00
2018-07-14 12:34:03 +02:00
2018-03-19 16:15:06 -07:00
2017-03-30 12:42:44 -07:00