Replaced exhaustive search with a binary lookup in watch list.
authorStanislaw Klekot <dozzie@jarowit.net>
Wed, 11 Oct 2017 21:29:45 +0000 (23:29 +0200)
committerStanislaw Klekot <dozzie@jarowit.net>
Wed, 11 Oct 2017 21:29:45 +0000 (23:29 +0200)
commitf439830c17bce05ba5e4f24bc912dd6fcb3d7a4a
treecdce1ba04bc2c16973e7510669b8a732c602b7ef
parentbc0fff3675519b17474d50d6220b1d5bf5533627
Replaced exhaustive search with a binary lookup in watch list.

This should make lookups faster, though adding or removing a watch will be
a little slower in some cases.
c_src/gen_inotify_drv.c