Try to speedup collecting DWARF attribute values by using emplace_back() to avoid extra calls to copy and/or move constructors.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| lldb/source/Plugins/SymbolFile/DWARF/DWARFAttribute.h | ||
|---|---|---|
| 83 | We usually don't prefix constructor arguments. Most LLDB code would write this as | |
| lldb/source/Plugins/SymbolFile/DWARF/DWARFAttribute.h | ||
|---|---|---|
| 83 | Why not drop the prefixes all together? I don't see what they add here. | |
We usually don't prefix constructor arguments. Most LLDB code would write this as
m_cu(cu) for classes and cu(cu) for structs.