4 ms·
Yes! You can build a decompressor only version of zstd that is only 95 KB with my version of gcc. > make -j libzstd ZSTD_LIB_MINIFY=1 ZSTD_LIB_COMPRESSION=
by terrelln 4y ago
Yes! You can build a decompressor only version of zstd that is only 95 KB with my version of gcc.
> make -j libzstd ZSTD_LIB_MINIFY=1 ZSTD_LIB_COMPRESSION=0 ZSTD_LIB_DICTBUILDER=0 ZSTD_LEGACY_SUPPORT=0 ZSTD_LIB_DEPRECATED=0
> wc -c libzstd.so
95824 libzstd.so
Longer term, we want to offer a stripped version of the library that includes the compression code, but only includes some of our compression levels. That way you can save code size for unused compression levels.
We've optimized pretty heavily in favor of speed over code size. But we want to offer better configurability, we just need to find the time to do it. We'd happily take PRs that go in this direction!
- kazinator 4y agoThat's good to know. Use "size" to check sizes; the raw file size could be including unknown amounts of extra material like debug symbols.