HomePhabricator

[Support] Don't initialize compressed buffer allocated by zlib::compress

Description

[Support] Don't initialize compressed buffer allocated by zlib::compress

resize() (zeroing) makes every allocated page resident. The actual size of the compressed buffer is usually much
smaller. Making every page resident is wasteful.

When linking a test binary with ~1.9GiB uncompressed debug info with LLD, this optimization decreases max RSS by ~1.5GiB.

Differential Revision: https://reviews.llvm.org/50223

Details

Committed
MaskRayAug 3 2018, 12:37 PM
Parents
rL338912: Properly add shared locks to the initial list of locks being tracked, instead…
Branches
Unknown
Tags
Unknown