[PATCH v2] strip: Use dwz to compress dwarf headers
Morten Linderud
foxboron at archlinux.org
Wed Jun 1 09:51:03 UTC 2022
On Wed, Jun 01, 2022 at 10:45:42AM +0100, Emil Velikov wrote:
> On Saturday, 28 May 2022, Morten Linderud <foxboron at archlinux.org> wrote:
>
> > From: Morten Linderud <morten at linderud.pw>
> >
> > `dwz` allows us to compress the DWARF files when building debug
> > packages. Potentially shaving off some of the sizes of the symbols we
> > distribute.
> >
> > https://sourceware.org/dwz/
> >
> > A sample of packages built with dwz;
> >
> > pacman:
> > Original debug info size: 1520kB
> > Size after compression: 1252kB
> >
> > systemd:
> > Original debug info size: 46692kB
> > Size after compression: 41036kB
> >
> >
> Out of curiosity: have you measured the overhead?
>
> The one during package creation and runtime one during extraction.
> Especially for larger packages - say chromium, Firefox, etc
>
> That aside, I really like the explicit die-limit args which should ensure
> that even the debug packages stay reproducible.
I haven't. I should frankly rewrite the commit message and provide a bit more
details because I don't think they are 100% correct with the multifile approach.
However from what I can tell the largest overhead during package creation is
still the stripping itself and compression. dwz takes less then a second. I
don't know how to test extraction though.
Do feel free to help me test dwz though :) I'll add it to the repos so it's
easier to test it.
--
Morten Linderud
PGP: 9C02FF419FECBE16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20220601/695bd815/attachment.sig>
More information about the pacman-dev
mailing list