http://qs321.pair.com?node_id=1146172


in reply to Searching over multiple directories using unusual logic

I don't know your environment, so it is difficult to advocate improvement, or something else. It all depends on where your program is spending too much time, if you are concerned about that. It depends on the number of updates to the searched directories, the timespan searched through, upon the number of files in each, and the size of the files searched. And it all depends on Laziness, Impatience and Hubris.

Off my head, some things to look at:

For laziness - "if it ain't broke, don't fix it" and if there are no complaints - just let the working solution in place.

Hopefully others can provide more ideas...

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'