Open
Description
The GNU xz command has a boolean --x86
flag which allegedly gives 0-15% extra compression when applied to files containing x86 machine code. The Linux kernel uses this flag when compressing its bzImage. It is also popular among UEFI implementations when compressing firmware.
The explanation from the xz
man page is:
A BCJ filter converts relative addresses in the machine code to
their absolute counterparts. This doesn't change the size of
the data, but it increases redundancy, which can help LZMA2 to
produce 0-15 % smaller .xz file. The BCJ filters are always
reversible, so using a BCJ filter for wrong type of data doesn't
cause any data loss, although it may make the compression ratio
slightly worse.
We have already adapted this feature to Go. Would it be suitable to upstream it with an --x86
flag?
Activity