Last modified: 2011-07-07 20:18:04 UTC
Created attachment 8569 [details] A new version of doQuotes Attached is a patch that alters doQuotes, a member of Parser. Initial experimentation seems to show that the altered doQuotes runs in about two-thirds the time of the original version. The main alteration is that quote groups in $arr are encoded using integers, not strings. This both offers a speedup, and (in my opinion) makes the code more readable. There are a few other alterations of minor importance.
Given bug 29111, this seems a bit more important.
Can you show your benchmarks? I wouldn't expect doQuotes to take up a large amount of parsing time at all; a speedup here may not be worth changing fragile code.
I took a look again at the numbers, and the old doQuotes seems to be running for less than a ms on a several second page request. So, it probably isn't worth it.
Is this WONTFIX then?