Message130111
Big dirs are really slow to read at once. If user wants to read items one by one like here:
--------------
for i in os.listdir()
use(i)
--------------
having generator will gain performance, as big directories often very fragmented on disk. Also, dir_cache in kernel used more effectively. |
|
Date |
User |
Action |
Args |
2011-03-05 10:17:59 | socketpair | set | recipients:
+ socketpair |
2011-03-05 10:17:58 | socketpair | set | messageid: <1299320278.86.0.403600489598.issue11406@psf.upfronthosting.co.za> |
2011-03-05 10:17:58 | socketpair | link | issue11406 messages |
2011-03-05 10:17:58 | socketpair | create | |
|