AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

mancompress: use pb=0 special sauce #143

Closed Artoria2e5 closed 1 year ago

Artoria2e5 commented 1 year ago

xz(1) suggests using pb=0 for general English text. https://bugs.gentoo.org/169260#c19 shows that doing so cuts 1/3 from the compressed size, which is big.

But do note that man-db search is awful slow for non-gz compression because of all the pipework involved. gz used to be slow to, until man-db started doing zlib decompress. See uhhh... somewhere around https://lore.kernel.org/linux-man/44768e26-ed92-0562-2318-68fec781126b@gmail.com/T/#m25978be2ce8245c67773911dbeb33140604e6d77.

Oh and xz without pb=0 doesn't provide much more compression than gzip -9, which is very normal given the tiny files. Maybe we should just go for gz.