Vinay Sajip <vinay_sa...@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:

vi...@eta-jaunty:~/projects/scratch$ python3.2 timefc.py
filename_comparison 50.61 microseconds
module_globals 49.56 microseconds
vi...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9948>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to