]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Performance improvements to the profiler:
authorFred Drake <fdrake@acm.org>
Fri, 8 Jun 2001 04:25:24 +0000 (04:25 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 8 Jun 2001 04:25:24 +0000 (04:25 +0000)
commitedb5ffb2c145fc52df2195c22688db51034b08d5
tree895ed4334977ec2af3ce4c7e8556c8de079db9c7
parent13b8bc54788ab4112f94160e2253bcf86da96c95
Performance improvements to the profiler:

Ensure that all the default timers are called as functions, not an
expensive method wrapper around a variety of different functions.

Agressively avoid dictionary lookups.

Modify the dispatch scheme (Profile.trace_dispatch_*(), where * is not
'call', 'exception' or 'return') so that the callables dispatched to
are simple functions and not bound methods -- this reduces the number
of layers of Python call machinery that gets touched.

Remove a couple of duplicate imports from the "if __name__ == ..."
section.

This closes SF patch #430948.
Lib/profile.py