c4milo/node-inotify — pull request #21 by mhlo (2011-10-28 02:31:18+00:00)
Title: fix up inotify read loop to not lose events

I sent this (not knowing any better) to your gmail account the other day, Camilo. Now I know better ;-). Just a patch really to get the inotify code to scale up a bit. After the change, it doesn't lose events, and I can get 2 test processes (one creating files if they don't exist and then sleeping for a short amount of time and the other noticing the creation and deleting said files) to do 20 such files create/inotify/deletes at 10K creations/sec on my laptop, with only occasional points where the creating code wants to create the file again and can't because the other node process hasn't yet deleted it. Hope this helps.