]> Sergey Matveev's repositories - public-inbox.git/commit
http: favor DS->write(strref) when reasonable
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:12 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:26 +0000 (05:26 +0000)
commit676f13ac53bf96eab869514fe9fafcc0169874ab
tree39220513165c318dee7695e0f276e382470d1535
parentf6c9b3da9cf87cfbde7b95772de6b337ba46ef68
http: favor DS->write(strref) when reasonable

This can avoid large memory copies when strings can't be
copy-on-write and saves us the trouble of creating new
refs in the code.
lib/PublicInbox/HTTP.pm