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



Peter Espen wrote:
> 
> The following python code searched a heiarchy of 28,517 directories and 
> 222,766 files.  For each "regular" file found, it opened and searched 
> the first 1024 lines for any line beginning with 'Subject'.
> 
> Ran in 7 minutes 13 seconds on a fast linux system.
> 

I've played with it, and so far the only output I can get from it is:

line 6: syntax error near unexpected token `foo('
line 6: `def foo( total, dirname, filelist):'



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