Python 2 times slower than Perl

Brian Quinlan BrianQ at ActiveState.com
Tue Jul 17 17:41:14 EDT 2001


> > > if you put the code in a function, it will be a fair bit faster
> > > since global variable access is slower than local variable
access.

> Actually, it increases performance by ~15%.

That is too be expected. Fast load and save opcodes are not generated
for globals.





More information about the Python-list mailing list