STINNER Victor added the comment: > You may want to have the C primitive return results in batches (of e.g. 10 or > 100 entries) to limit the overhead, btw.
Ah yes, good idea. I read that internally readdir() also fetchs many entries in a single syscall (prefetch" / readahead, I don't know how to call that). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22524> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com