abarisain/scrup — pull request #1 by fergusean (2012-07-11 07:57:31+00:00)
Title: even more performance updates

Hello!

I patched Scrup a few months back to use the SCEvents library, but I did a really messy job of it (just commenting out the old code instead of removing it). I was going to push mine to Github when I checked the network page and found your version, which I thought was quite a bit cleaner! So I threw mine out and cloned yours :)

As you probably know, the old method watched the entire disk and every time anything in the filesystem was changed, Scrup scanned the desktop. Using FSEvents is way better due to the fact that it's only monitoring a single folder.

However, I added something that makes it even better: the FSEvents notification has flags that tell you what kind of operation was performed, so I added a check for that and now the desktop is only scanned when a new file is created.

I also deleted the SCEvents files from the root and added a submodule pull from the SCEvents repo on Github.