[ python-Bugs-997726 ] dircache fix;
raise like os.listdir, plus optimization
SourceForge.net
noreply at sourceforge.net
Mon Jul 26 00:21:38 CEST 2004
Bugs item #997726, was opened at 2004-07-25 22:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=997726&group_id=5470
Category: Extension Modules
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Carl Henrik Holth Lunde (chlunde)
Assigned to: Nobody/Anonymous (nobody)
Summary: dircache fix; raise like os.listdir, plus optimization
Initial Comment:
I think it would be better if dircache.listdir acts
like os.listdir on missing
directories; raise os.error
Additionally, I rewrote the logic so it's about 15%
faster. If you remove
the outer try-except-block which purges the cache for a
folder on a
miss it's 30% faster. This makes if five times as fast
as os.listdir (with
my program).
Not sure if anybody cares about the speed, the thing I
was surprised
about was that dircache wasn't a drop-in replacement
for listdir.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=997726&group_id=5470
More information about the Python-bugs-list
mailing list