]> Sergey Matveev's repositories - public-inbox.git/commit
view: simplify quote splitting
authorEric Wong <e@80x24.org>
Fri, 1 Feb 2019 03:06:47 +0000 (03:06 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Feb 2019 04:24:54 +0000 (04:24 +0000)
commit7475739ec4e426004619f95f6e48fa07d940a5c0
treec0248cd8d85ac9de0415091b3382e2958b4e1973
parent1e03323d76eb6c029ab6749fe783f25d5d109e1f
view: simplify quote splitting

Perl "split" can capture and group in the regexp itself,
so rely on that to shorten our code.

Comparing the /T/ HTML output of a thread from hell (on LKML with
1356 messages) reveals no difference in the rendered result.
Only the HTML source differs in newline placement before/after
the closing </span>

This allows a minor speedup on my X32 Thinkpad @ 1.6GHz with
the aforementioned LKML thread from hell:

before: 3.67s
 after: 3.55s
lib/PublicInbox/View.pm