]> Sergey Matveev's repositories - public-inbox.git/commit
inboxidle: avoid per-inbox anonymous subs
authorEric Wong <e@yhbt.net>
Thu, 2 Jul 2020 03:32:56 +0000 (03:32 +0000)
committerEric Wong <e@yhbt.net>
Thu, 2 Jul 2020 19:51:14 +0000 (19:51 +0000)
commit1bc3707e3e0983c9aed898980ec8acf6501813f7
treeee00a849c6746dfee4e58691926e4e3a2f954f4a
parent62575c514f07260cff5865b7bf122e41178b0476
inboxidle: avoid per-inbox anonymous subs

Anonymous subs cost over 5K each on x86-64.  So prefer the
less-recommended-but-still-documented way of using
Linux::Inotify2::watch to register watchers.

This also updates FakeInotify to detect modifications correctly
when used on systems with neither IO::KQueue nor
Linux::Inotify2.
lib/PublicInbox/DirIdle.pm
lib/PublicInbox/FakeInotify.pm
lib/PublicInbox/InboxIdle.pm
lib/PublicInbox/KQNotify.pm
t/fake_inotify.t
t/kqnotify.t