]> Sergey Matveev's repositories - public-inbox.git/commit
qspawn: remove some anonymous subs for psgi_qx
authorEric Wong <e@80x24.org>
Wed, 25 Dec 2019 07:50:37 +0000 (07:50 +0000)
committerEric Wong <e@80x24.org>
Thu, 26 Dec 2019 10:48:19 +0000 (10:48 +0000)
commit2b8dff053f61a15cd2987fdab8e60c2e4b6aa819
treeab3153635886168fe1b75ad871364c053933ab3e
parentbfa40d0c4a970e5af0eae0441920a491c4f6fa1d
qspawn: remove some anonymous subs for psgi_qx

By passing a user-supplied arg to $qx_cb, we can eliminate the
callers' need to capture on-stack variables with a closure.
This saves several kilobytes of memory allocation at the expense
of some extra hash table lookups in user-supplied callbacks.  It
also reduces the risk of memory leaks by eliminating a common
source of circular references.
lib/PublicInbox/Qspawn.pm
lib/PublicInbox/SolverGit.pm
lib/PublicInbox/ViewVCS.pm