]> Sergey Matveev's repositories - public-inbox.git/commit
eml: favor index() over regexp match
authorEric Wong <e@80x24.org>
Wed, 27 Jan 2021 09:42:22 +0000 (03:42 -0600)
committerEric Wong <e@80x24.org>
Fri, 29 Jan 2021 05:04:40 +0000 (05:04 +0000)
commiteb7fd8fdd59862b5ddea07f1a4bc9a946245ad14
tree5fcc537db520a4dee11f0ec9b18fe0d082726c51
parentda86f10a548d4cce25f91bb4063f82ecbbe441a1
eml: favor index() over regexp match

Where applicable, index() is faster than entering the regexp
engine and we favor it in several other places, as well.
lib/PublicInbox/Eml.pm