diff options
author | Rui Ueyama <ruiu@google.com> | 2017-09-25 04:55:27 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-09-25 04:55:27 +0000 |
commit | 17cc6f6ad9787994b95c4ae56dffe4f18c1dfb91 (patch) | |
tree | 509f7ccea8bced82f54f8942e0523f85358f87d7 /lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py | |
parent | 8f222b815883a5cbee7338697ae53cea98b1ce2e (diff) | |
download | bcm5719-llvm-17cc6f6ad9787994b95c4ae56dffe4f18c1dfb91.tar.gz bcm5719-llvm-17cc6f6ad9787994b95c4ae56dffe4f18c1dfb91.zip |
Speeds up CU vector creation.
We used to use std::set to uniquify CU vector elements, but as we know,
std::set is pretty slow. Fortunately we didn't actually have to use a
std::set here. This patch replaces it with std::vector.
With this patch, lld's -gdb-index overhead when linking a clang debug
build is now about 1 second (8.65 seconds without -gdb-index vs 9.60
seconds with -gdb-index). Since gold takes more than 6 seconds to create
a .gdb_index for the same output, our number isn't that bad.
llvm-svn: 314094
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py')
0 files changed, 0 insertions, 0 deletions