diff options
| author | Fangrui Song <i@maskray.me> | 2022-01-09 13:43:26 -0800 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2022-01-09 13:43:27 -0800 |
| commit | 5d3bd7f36092c88265dc698a970078184425f67c (patch) | |
| tree | 63099dd77adf86432a81462d7f9f20cef9b1e8ef /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 2bcff220bf1e372e91491911fe0bb76c4c4bbef8 (diff) | |
[ELF] Move gotIndex/pltIndex/globalDynIndex to SymbolAux
to decrease sizeof(SymbolUnion) by 8 on ELF64 platforms.
Symbols needing such information are typically 1% or fewer (5134 out of 560520
when linking clang, 19898 out of 5550705 when linking chrome). Storing them
elsewhere can decrease memory usage and symbol initialization time.
There is a ~0.8% saving on max RSS when linking a large program.
Future direction:
* Move some of dynsymIndex/verdefIndex/versionId to SymbolAux
* Support mixed TLSDESC and TLS GD without increasing sizeof(SymbolUnion)
Reviewed By: peter.smith
Differential Revision: https://reviews.llvm.org/D116281
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
