compilation

Michael P. Soulier msoulier at nortelnetworks.com
Thu Jun 29 07:34:09 EDT 2000


In article <8jdi5s$om4$1 at nnrp1.deja.com>, Frédéric van der Plancke wrote:
>
>When the interpreter finds a xxx.pyc file on your Python path when
>you type 'import xxx', it loads that directly instead of recompiling
>xxx.py  (provided xxx.py is older, and other soundness conditions)
>
>Is that what you want ?

	Umm, sort of. I guess the top-level script still has to be a .py file.
That's fine, since if you're really wanting performance you could put
everything in the modules, let python compile them into pyc's, and then just
get the ball rolling from the .py file. 
	I'll have to benchmark this and see how much of an improvement it offers. 

	Mike

-- 
Michael P. Soulier, 1Z22, SKY  Tel: 613-765-4699 (ESN: 39-54699)
Optical Networks, Nortel Networks 
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to UNIX



More information about the Python-list mailing list