In a message of Sun, 07 Jun 2015 12:27:05 +0200, Peter Otten writes: >> There is no gain to get in standard Python? By switching from fnmatch >> to re I got almost a speed gain of two. So I was wondering if I could >> do more. > >Just wait for Python 3.5. The switch from os.listdir() to the (new) >os.scandir() in the implementation of os.walk() is likely to improve the >situation:
Oh cool. I had no idea. Thank you for showing us this. Laura -- https://mail.python.org/mailman/listinfo/python-list