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



Perl is optimized for processing data in large amounts, Python was designed 
to be a threading/cluster language to handle pipes and processes. 
 
The C library's involved play one part in the utilization of the languages. 
 
But right now, like Paul said, he just needs to optimize what he has. 
 
Steve M 
 
On Wed, 9 Feb 2005 10:20:05 -0700, Jack Moffitt wrote 
> > 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. 
> _______________________________________________ 
> NMLUG mailing list 
> NMLUG@nmlug.org 
> http://www.nmlug.org/mailman/listinfo/nmlug 
 
 
-- 
Open WebMail Project (http://openwebmail.org) 
 



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