]> Sergey Matveev's repositories - public-inbox.git/commit
config: config_fh_parse: micro-optimize harder
authorEric Wong <e@80x24.org>
Wed, 23 Dec 2020 08:38:53 +0000 (08:38 +0000)
committerEric Wong <e@80x24.org>
Wed, 23 Dec 2020 23:46:45 +0000 (23:46 +0000)
commit74e705e24dffaf4dcb3952910678df7529783762
treee41506e06e5212f2441f97471fcd52f4fb150dcc
parenta05445fb400108e60ede7d377cf3b26a0392eb24
config: config_fh_parse: micro-optimize harder

Instead of relying on split() and a regexp, we'll drop split()
entirely and rely on index() + two substr() calls to operate on
fixed strings.  This brings PublicInbox::Config->new time down
from 0.98s down to 0.84s.
lib/PublicInbox/Config.pm