[Lldb-commits] [lldb] [lldb] Speed up SymbolContextList::AppendIfUnique (PR #181952)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 20 00:01:56 PST 2026
================
@@ -475,10 +485,9 @@ class SymbolContextList {
void GetDescription(Stream *s, lldb::DescriptionLevel level,
Target *target) const;
-protected:
- typedef std::vector<SymbolContext>
- collection; ///< The collection type for the list.
- typedef collection::const_iterator const_iterator;
+private:
+ using collection = llvm::SetVector<SymbolContext, std::vector<SymbolContext>>;
----------------
Michael137 wrote:
```suggestion
using collection = llvm::SetVector<SymbolContext, llvm::SmallVector<SymbolContext, 1>>;
```
?
https://github.com/llvm/llvm-project/pull/181952
More information about the lldb-commits
mailing list