Some days ago I committed lots of changes regarding inotify support. Goodies and improvements have been introduced… I had this code laying on my laptop for several weeks because I wasn’t able to fully test it. An annoying bug afflicting the update index operations was blocking me. But some days ago Jos fixed it, so I didn’t have any excuse :)
These are the major changes introduced:
- event caching: using a small cache it’s now possible to simplify multiple events and prevent high cpu usage when lot of changes occur on the same files
- interruption handling during the re-index operations: changing the directories to watch during an indexing operation will break the previous job and start a new one
- other small changes for improving cpu utilization
Actually I’m very happy of the first point, but I think the second one can still be improved…