> On a locally running VM: > os.walk took 0.400s, scandir.walk took 0.120s -- 3.3x as fast > > Same VM accessed from the host through a local sshfs: > os.walk took 2.261s, scandir.walk took 2.055s -- 1.1x as fast > > Same, but with "sshfs -o cache=no": > os.walk took 24.060s, scandir.walk took 25.906s -- 0.9x as fast
Thanks. I take it those are "USING FAST C version"? What is "-o cache=no"? I'm guessing the last one isn't giving dirents, so my version is slightly slower than the built-in listdir/stat version due to building and calling methods on the DirEntry objects in Python. It should be no slower when it's all moved to C. -Ben _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com