[RFC] Improve Dwarf 5 .debug_names Type Lookup/Parsing Speed

Do you have a small/standalone example?

Hmm, that’s not my understanding - again, perhaps a small/concrete example would be helpful to discuss?

(my understanding was we did the work to address -gsimple-template-names usage in lldb: [DWARF] using simplified template names - #13 by dblaikie and ⚙ D134378 [lldb] Support simplified template names )

Hmm - how does that square with the work done in D134378? Was that work incomplete? I’d like to know more about how to ensure this is working well.

I don’t believe that was the case with -gsimple-template-names - we did make an effort to ensure it works with lldb.

Once you reach a class type, though, like std::vector<int> would it be feasible to search inside the DWARF description or Clang AST of that type, rather than consulting the context-free index? (I understand this wouldn’t be the right choice for a namespace, like std, but for class members, it’s a bit more bounded - and “members of std::vector<int>” is probably a smaller list than “all entities named iterator”, for instance)