summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-01-06 10:54:13 -0500
committerNico Weber <thakis@chromium.org>2020-01-06 12:57:42 -0500
commitf6544934b94932f1d2231238046f83ba8b083040 (patch)
tree2b749c995a823176543fe7e53d6222bb79d6b1b3 /lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
parent3abc2927cb2372349fbbc0b62382c85d7d000f2c (diff)
downloadbcm5719-llvm-f6544934b94932f1d2231238046f83ba8b083040.tar.gz
bcm5719-llvm-f6544934b94932f1d2231238046f83ba8b083040.zip
Make check-llvm run 50% faster on macOS, 18% faster on Windows.
While looking at cycle time graphs of some of my bots, I noticed that 327894859cc made check-llvm noticeably slower on macOS and Windows. As it turns out, the 5 substitutions added in that change were enough to cause lit to thrash the build-in cache in re.compile() (re.sub() is implemented as re.compile().sub()), and apparently applySubstitutions() is on the cricital path and slow when all regexes need to compile all the time. (See `_MAXCACHE = 512` in cpython/Lib/re.py) Supporting full regexes for lit substitutions seems a bit like overkill, but for now add a simple unbounded cache to recover the lost performance. No intended behavior change.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud