diff options
| author | Kazu Hirata <kazu@google.com> | 2024-09-20 07:55:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-20 07:55:02 -0700 |
| commit | 69dbf468bf0beb87e2a8d9f9f597296d642028d6 (patch) | |
| tree | f453a9e3270447733490bf4a95e2a786e900685f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 9f8f1d9890fcbae96b92fa0bee5a6f9e1f953ebd (diff) | |
[Sema] Avoid repeated hash lookups (NFC) (#109375)
GlobalMethodPool, the type of MethodPool, is a type wrapping DenseMap
and exposes only a subset of the DenseMap methods.
This patch adds operator[] to GlobalMethodPool so that we can avoid
repeated hash lookups. I don't bother using references or rvalue
references in operator[] because Selector, the key type, is small and
trivially copyable. Note that Selector is a class that wraps a
PointerUnion.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
