Le Tue, 14 May 2013 22:14:42 +1200, Ben Hoyt <benhoyt@gmail.com> a écrit :
It should be no slower when it's all moved to C.
The slowdown is too small to be interesting. The main point is that there was no speedup, though.
True, and thanks for testing.
I don't think that's a big issue, however. If it's 3-8x faster in the majority of cases (local disk on all systems, Windows networking), and no slower in a minority (sshfs), I'm not too sad about that.
I wonder how sshfs compared to nfs.
Ok, with a NFS mount (default options, especially "sync") to the same local VM: First run: os.walk took 17.137s, scandir.walk took 0.625s -- 27.4x as fast Second run: os.walk took 1.535s, scandir.walk took 0.617s -- 2.5x as fast (something fishy with caches?) Regards Antoine.