]> Sergey Matveev's repositories - public-inbox.git/commit
spawn: split() on regexp, not a literal string
authorEric Wong <e@80x24.org>
Mon, 25 Jan 2021 06:41:57 +0000 (22:41 -0800)
committerEric Wong <e@80x24.org>
Tue, 26 Jan 2021 18:51:31 +0000 (18:51 +0000)
commit99d3f175072a8ef062ba6335a3ceb267ba89c12b
tree831aac52aeb6863be0178701aa9b3d53c5fb8023
parentaf3dfdc0416c7d9d5ad785826639744cc2cd9b9a
spawn: split() on regexp, not a literal string

It doesn't appear Perl (as of 5.32.x) has any internal
optimization for splitting on a single-byte, so give it
a regexp instead of letting it compile and discard a
new one every single time.
lib/PublicInbox/Spawn.pm