I\'m trying to speedup directory enumeration in C++, where I\'m recursing into subdirectories. I currently have an app which spends 95% of it\'s time in FindFirst/FindNextFi
Don't recurse immediately, save a list of directories you find and dive into them when finished. You want to do linear access to each directory, to take advantage of locality of reference and any caching the OS is doing.