]> Sergey Matveev's repositories - public-inbox.git/commit
http: get rid of anonymous subs for write/close
authorEric Wong <e@80x24.org>
Sat, 21 Dec 2019 23:53:18 +0000 (23:53 +0000)
committerEric Wong <e@80x24.org>
Sun, 22 Dec 2019 03:55:22 +0000 (03:55 +0000)
commitae47354a6484328685de97173ca81da249b299ee
tree7d760d67ac880504ecb77a493c4e57eb9765790e
parentc4e57273ce3a7d305ceb21225dae32ece935740f
http: get rid of anonymous subs for write/close

Each sub costs us several kilobytes of memory for every
response we make.  An arrayref only costs 80 bytes on
64-bit, so bless that to packages with appropriate ->write
and ->close methods.
lib/PublicInbox/HTTP.pm