]> Sergey Matveev's repositories - public-inbox.git/commit
lei: prefer IO::FDPass over our Inline::C recv_3fds
authorEric Wong <e@80x24.org>
Sun, 3 Jan 2021 20:58:29 +0000 (20:58 +0000)
committerEric Wong <e@80x24.org>
Mon, 4 Jan 2021 04:02:54 +0000 (04:02 +0000)
commit7c73a09c6df674e389fb20fb57f63c6bb9695d31
treeea0fa44e55b063b58aa98bccac9bca6662d7e80e
parentddb34f3e901c2e93e9b02dbac31961225b33379f
lei: prefer IO::FDPass over our Inline::C recv_3fds

While our recv_3fds() implementation is more efficient
syscall-wise, loading Inline takes nearly 50ms on my machine
even after Inline::C memoizes the build.  The current ~20ms in
the fast path is barely acceptable to me, and 50ms would be
unusable.

Eventually, script/lei may invoke tcc(1) or cc(1) directly in
the fast path, but it needs @INC for the slow path, at least.

We'll encode the number of FDs into the socket name allow
parallel installations, for now.
lib/PublicInbox/LEI.pm
lib/PublicInbox/Spawn.pm
script/lei
t/lei.t