home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] Python tight loop causing massive CPU barfage



> Yes, I believe Perl will be much faster - but only because it's IO stuff 
> is supposedly more highly optimized than Pythons.

I doubt this.  They both use C-level stdio afaik. 

Python's biggest speed problem is in tight loops which make function
calls.  Can you eliminate one or two of those?  Calling a function is
pretty much the most expensive operation in the language.

jack.



Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache