[Python-ideas] disabling .pyc and .pyo files

Antoine Pitrou solipsis at pitrou.net
Thu Dec 10 05:50:40 CET 2009

> I gave such a use-case earlier in this thread:
> """
> It would also be useful when benchmarking multiple iterations of the
> same VM. I've considered implementing something like this for Unladen
> Swallow so that we could more effectively isolate the running binary
> from global state (with a sys.dont_read_bytecode command-line flag
> doing for bytecode files what -E does for environment variables).
> """

I'm not sure I understand the point. Surely importing modules isn't in
the critical path (or even in the measured path) of your benchmark, is

More information about the Python-ideas mailing list