aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/BinaryFormat/DXContainer.cpp
diff options
context:
space:
mode:
authorAugusto Noronha <anoronha@apple.com>2025-08-07 11:12:38 -0700
committerGitHub <noreply@github.com>2025-08-07 11:12:38 -0700
commit229d86026fa0e5d9412a0d5004532f0d9733aac6 (patch)
tree2eef5b63d094be9139bef169963ddea7b7f2e662 /llvm/lib/BinaryFormat/DXContainer.cpp
parent660555191b3e886a578f3d9bfdcb49877e1c5da0 (diff)
downloadllvm-229d86026fa0e5d9412a0d5004532f0d9733aac6.zip
llvm-229d86026fa0e5d9412a0d5004532f0d9733aac6.tar.gz
llvm-229d86026fa0e5d9412a0d5004532f0d9733aac6.tar.bz2
[NFC][lldb] Speed up lookup of shared modules (#152054)
By profiling LLDB debugging a Swift application without a dSYM and a large amount of .o files, I identified that querying shared modules was the biggest bottleneck when running "frame variable", and Clang types need to be searched. One of the reasons for that slowness is that the shared module list can grow very large, and the search through it is O(n). To solve this issue, this patch adds a new hashmap to the shared module list whose key is the name of the module, and the value is all the modules that share that name. This should speed up any search where the query contains the module name. rdar://156753350
Diffstat (limited to 'llvm/lib/BinaryFormat/DXContainer.cpp')
0 files changed, 0 insertions, 0 deletions