optimized DirWalker