in reply to Re^2: quick way to read a few directory entries of many
in thread quick way to read a few directory entries of many

Maybe you could somehow take advantage of Linux's inotify mechanism (and Linux::Inotify2) — if you're on Linux, that is, of course... but your mention of ext3 sounds like you might be.  In other words, you could scan the entire directory once, and then update the resulting data structure as you receive events about individual files being added, removed, etc.  Or something like that.  Just an idea...

  • Comment on Re^3: quick way to read a few directory entries of many (inotify)

Replies are listed 'Best First'.
Re^4: quick way to read a few directory entries of many (inotify)
by ikegami (Patriarch) on Jun 06, 2008 at 01:00 UTC