On 5/20/20 1:49 PM, Jan Hubicka wrote:
On related note, I remember us discussing that std compression has
problem with bigger headers then zlib.  Since we stream our header that
says if section is compressed, I wonder if we could teach stream-out
phase to skip compression if it is not benefical, so the size info is
not duplicated?

Hello.

I've collected statistics for that on tramp3d (with -O2 -flto) and I see:

sections: 3041, not beneficial: 16
before: 13804315, after: 4753009
can save: -128 (-0.00%)

So there are only 16 sections that are bigger when compressed with ZSTD
(including zstd header size). The benefit is negligible.

Martin

Reply via email to