Message130111
| Author | socketpair |
|---|---|
| Recipients | socketpair |
| Date | 2011-03-05.10:17:58 |
| SpamBayes Score | 0.067560315 |
| Marked as misclassified | No |
| Message-id | <1299320278.86.0.403600489598.issue11406@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |