]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: reuse existing string in diff_before_or_after
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 08:17:08 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 19:50:38 +0000 (19:50 +0000)
commite1190baa1463ee37e45b439a38f5e376ad39614b
treeffec0a7260da4ff47fca4cad9e575720479011ad
parent5ade6f79b3b7b2c3562cfa6fd7b8cf68223f0c0a
viewdiff: reuse existing string in diff_before_or_after

Instead of appending to an ever-growing {obuf}, we'll reuse
the existing string (which already has pre-allocated memory).
lib/PublicInbox/ViewDiff.pm