summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-09-25 04:55:27 +0000
committerRui Ueyama <ruiu@google.com>2017-09-25 04:55:27 +0000
commit17cc6f6ad9787994b95c4ae56dffe4f18c1dfb91 (patch)
tree509f7ccea8bced82f54f8942e0523f85358f87d7 /lldb/packages/Python/lldbsuite/test/python_api
parent8f222b815883a5cbee7338697ae53cea98b1ce2e (diff)
downloadbcm5719-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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud