]> Sergey Matveev's repositories - public-inbox.git/commit
git: avoid Perl5 internal scratchpad target cache
authorEric Wong <e@80x24.org>
Sun, 24 Oct 2021 00:20:45 +0000 (18:20 -0600)
committerEric Wong <e@80x24.org>
Sun, 24 Oct 2021 02:20:33 +0000 (02:20 +0000)
commit48af2131c7ef0e7001f99fe3c2dabd1713d3e800
tree6354be468fb22ef0b33f236ed3789a4da8999fe8
parent08b543eb6c67cc19ea8e86afe6b9494df79e2fea
git: avoid Perl5 internal scratchpad target cache

Creating a scalar ref directly off substr() seemed to be causing
the underlying non-ref scalar to end up in Perl's scratchpad.
Assign the substr result to a local variable seems sufficient to
prevent multi-megabyte SVs from lingering indefinitely when a
read-only daemon serves rare, oversized blobs.
lib/PublicInbox/Git.pm