diff options
| author | Alexis Engelke <engelke@in.tum.de> | 2024-07-03 20:15:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-03 20:15:29 +0200 |
| commit | d54802092de3d92c4ecd331801970b0d84fecc25 (patch) | |
| tree | 74f192c382173e25369ebc55950f1577b67220f5 /lldb/test/API/python_api/thread/TestThreadAPI.py | |
| parent | 96c18a2769a48436e01ccc59154b8de9fe305e22 (diff) | |
[MC][ELF] Eliminate some hash maps from ELFObjectWriter (#97421)
Remove some maps. Mostly cleanup, only a slight performance win.
- Replace SectionIndexMap with layout order: The section layout order is
only used in MachO, so we can repurpose the field as section table
index.
- Store section offsets in MCSectionELF: No need for a map, and
especially not a std::map. Direct access to the underlying (and easily
modifyable) data structure is always faster.
- Improve storage of groups: There's no point in having a DenseMap, the
number of sections and groups are reasonably small to use vectors.
Diffstat (limited to 'lldb/test/API/python_api/thread/TestThreadAPI.py')
0 files changed, 0 insertions, 0 deletions
