summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-12-11 18:00:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-12-11 18:00:22 +0000
commit256f1dd0fc2766292071e4ad34a700d2d878dedd (patch)
treed31738075070bee1eda479936f4711307b1c9d4e /lldb/source/Interpreter/PythonDataObjects.cpp
parent30797b2d7dac51036f3266738402178e85ca0b49 (diff)
downloadbcm5719-llvm-256f1dd0fc2766292071e4ad34a700d2d878dedd.tar.gz
bcm5719-llvm-256f1dd0fc2766292071e4ad34a700d2d878dedd.zip
Speed up looking up static diagnostic infos.
Instead of doing a binary search over the whole diagnostic table (which weighs a whopping 48k on x86_64), use the existing enums to compute the index in the table. This avoids loading any unneeded data from the table and avoids littering CPU caches with it. This code is in a hot path for code with many diagnostics. 1% speedup on -fsyntax-only gcc.c, which emits a lot of warnings. llvm-svn: 169890
Diffstat (limited to 'lldb/source/Interpreter/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud