]> Sergey Matveev's repositories - public-inbox.git/commit
ds: simplify EventLoop implementation
authorEric Wong <e@80x24.org>
Sun, 27 Dec 2020 02:53:06 +0000 (02:53 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Dec 2020 23:19:49 +0000 (23:19 +0000)
commita7794134700c855a7a4fc030720ee8901b38a5f0
treee7231eb5200261fc70326e23046a00eb59d93cdf
parent522bb4a4973d4ac41b83be58dd3257e8cd038744
ds: simplify EventLoop implementation

More importantly, make it easier-to-find the sub by avoiding
runtime manipulation of subroutine names.  There's no point in
avoiding a potential call to _InitPoller in EventLoop since
entering EventLoop is rare.

On the contrary, PublicInbox::DS->new is called often and this
change to avoid entering _InitPoller there may have more
benefits (which may still be unmeasurable).
lib/PublicInbox/DS.pm