[Lldb-commits] [lldb] [NFC][lldb] Speed up lookup of shared modules (PR #152054)

Augusto Noronha via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 5 09:58:32 PDT 2025


augusto2112 wrote:

> > 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.
> 
> Could you elaborate why this is Swift specific? Is it because it's happening down some Clang modules codepath?

This happens when doing a global `FindTypes` search looking for a specific Clang type, and there are lots of modules to search through. I'm not sure if this is Swift specific though, in theory this could happen anywhere that we do a global FindTypes search, and should speed up any queries to find shared modules.

https://github.com/llvm/llvm-project/pull/152054


More information about the lldb-commits mailing list