[llvm-dev] Default compression level for -compress-debug-info=zlib?

via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 2 11:44:41 PDT 2018


Augmenting Rui's table with percentages relative to no compression.

Level   Time            Size          Cost    Gain
0       0m17.128s       2045081496     0%      0%    Z_NO_COMPRESSION
1       0m31.471s       922618584     83.7%   54.9%  Z_BEST_SPEED
2       0m32.659s       903642376     90.7%   55.8%
3       0m36.749s       890805856    114.6%   56.4%
4       0m41.532s       876697184    142.5%   57.1%
5       0m48.383s       862778576    182.5%   57.8%
6       1m3.176s        855251640    268.9%   58.2%  Z_DEFAULT_COMPRESSION
7       1m15.335s       853755920    339.8%   58.3%
8       2m0.561s        852497560    603.9%   58.3%
9       2m33.972s       852397408    798.9%   58.3%  Z_BEST_COMPRESSION


SimonW's questions are pertinent too.  Assuming `lld –O2` does other useful things pertinent to runtime performance, I think debug-info compression ought to remain under a separate option.
--paulr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180802/ae2e0676/attachment.html>


More information about the llvm-dev mailing list