thephpleague/flysystem — pull request #337 by Markcial (2014-12-03 15:05:05+00:00)
Title: New glob plugin for file finding by glob pattern

Hi, the plugins works fine, but there are serious memory performance related issues because the files are traversed twice, i added a generator way to test if i can improve the performance a little bit but seems to be that the yield behaviour would need to be on a lower abstraction layer to achieve some serious improvements. BTW it works if the volume traversed has not much files, or the plugin is modified to work only in a single folder with not that many files. If i find some spare time between company tickets i might be able to help optimizing the list contents to yield the results if the php version supports it.