|Subject:||_process_events rescan is inefficient, too slow on large directories|
Comments in _process_events() say: # We are just ingoring the raw events for now... Mac::FSEvents # doesn't provide much information, so rescan ourselves The rescan works poorly when the directories contain a large number of files. Every time an inotify event occurs, this routine computes a stat on EVERY file in the directories. Unfortunately, this makes AnyEvent::Filesys::Notify unusable in my application, running under Linux. It's just too slow. Instead, _process_events() SHOULD process the raw events, and directly translate each Linux::Inotify2 event directly into the corresponding AEFN::Event. No rescan is needed. If you are concerned about Mac OSX performance, can you break that case into a separate routine? That way, Linux users will not have to suffer performance degradation to accommodate Mac code. Thank you.