[issue9948] findCaller is slow and loses case information on Windows

Vinay Sajip report at bugs.python.org
Tue Sep 28 17:12:27 CEST 2010


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

I made a temporary change to logging to time the two different approaches: see this gist:

http://gist.github.com/601162

According to these findings, the use of module globals seems to make only a marginal difference:

vinay at eta-jaunty:~/projects/scratch$ python3.2 timefc.py
filename_comparison 50.61 microseconds
module_globals 49.56 microseconds
vinay at eta-jaunty:~/projects/scratch$ python2.7 timefc.py
filename_comparison 50.79 microseconds
module_globals 50.01 microseconds

Have I missed something obvious?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9948>
_______________________________________


More information about the Python-bugs-list mailing list