HomePhabricator

Reduce memory usage when creating .gdb_index. NFC.

Description

Reduce memory usage when creating .gdb_index. NFC.

.gdb_index sections can be very large. When you are compiling
multi-gibibyte executables, they can be larger than 1 GiB. The previous
implementation of .gdb_index seems to consume too much memory.

This patch reduces memory consumption by eliminating temporary objects.
In one experiment, memory consumption of GdbIndexSection class is
reduced from 962 MiB to 228 MiB when creating a .gdb_index of 1350 GiB.

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

Details

Committed
ruiuJul 10 2018, 6:49 AM
Differential Revision
D49094: Reduce memory usage when creating .gdb_index. NFC.
Parents
rL336671: [analyzer] Add option to set maximum symbol complexity threshold
Branches
Unknown
Tags
Unknown