June 1, 2020
4:16 a.m.
Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment: Brilliant idea! I played with it yesterday, and it is easy to generalize it to work with a*/b*/c*/d/e/f and to "use not more than N simultaneously opened file descriptors per glob iterator". The only problem is if we want to use this idea with recursive "**" without losing performance. It is just a technical problem which can be solved by adding more code. Although I need to do some benchmarks. And I need to test how this idea will work with issue38144. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue22167> _______________________________________