iglob performance no better than glob
john at castleamber.com
Sun Jan 31 19:06:29 CET 2010
Kyp <kyp at stsci.edu> writes:
> Is there a way to get the first X # of files from a dir with lots of
> files, that does not take a long time to run?
Assuming Linux: what does time
ls thedir | head
with thedir the name of the actual dir
Also how many is many files?
John Bokma j3b
Hacking & Hiking in Mexico - http://johnbokma.com/
http://castleamber.com/ - Perl & Python Development
More information about the Python-list