[PATCH] D52126: Discard uncompressed buffer after creating .gdb_index contents.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 17 16:39:39 PDT 2018


Fair question - for Google, stream uncompressing to disk wouldn't help
matters - disk is a ramfs, so it's the same as uncompressing the whole
thing to a buffer in memory, which hurts a bit (due to memory limits).

For somewhat more "normal" users (I assume compressed debug info was
probably implemented before google's needs - but I could be wrong there,
maybe Google folks implemented it in gold/gcc before the LLVM switch) -
especially pre-Fission, debug info was the big culprit. Though that doesn't
mean it was better to just compress it rather than compressing everything.
Perhaps because keeping the object file as the outer container meant more
things continued to "just work" - objdump, etc, things that relied only on
the object file headers and not the section contents.

On Mon, Sep 17, 2018 at 4:21 PM Rui Ueyama via Phabricator <
reviews at reviews.llvm.org> wrote:

> ruiu added a comment.
>
> This might be a silly question, but why do we compress only debug
> sections? If we really want to compress object files for valid reasons
> (e.g. reducing amount of network traffic when doing a distributed build) we
> can simply compress an entire object file instead of compressing only the
> debug section. Then we can stream-uncompress object files to a disk and
> then run the linker on the input files.
>
>
> Repository:
>   rLLD LLVM Linker
>
> https://reviews.llvm.org/D52126
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180917/fcf77ecb/attachment.html>


More information about the llvm-commits mailing list