summaryrefslogtreecommitdiff
path: root/lab/benchmark.py
diff options
context:
space:
mode:
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2022-05-30 18:35:05 +0200
committerGitHub <noreply@github.com>2022-05-30 09:35:05 -0700
commitf40da644142bd89092e81ef72beaf66687fe9a15 (patch)
tree4ba9b57a2d0d567e762810ff8964517cc9428105 /lab/benchmark.py
parentf9a74c79b80200d065b4bd79acc427558c7db5a7 (diff)
downloadpython-coveragepy-git-f40da644142bd89092e81ef72beaf66687fe9a15.tar.gz
perf: PyTracer improvements (#1388)
* cache the bound method of _trace on self this speeds up pure python tracing because we don't have to re-create a bound method object all the time * optimize checking whether a file should be traced the optimization works based on the following heuristic: in a majority of cases, functions call other functions in the same file. In that situation we don't have to re-check whether we should trace the file * fix optimization in the presence of contexts * fix too long line
Diffstat (limited to 'lab/benchmark.py')
0 files changed, 0 insertions, 0 deletions