On Mon, Aug 16, 2004 at 05:04:13PM -0700, Brion Vibber wrote:
Magnus Manske wrote:
I have checked in the dirtiest hack of the week to
replace that
str_replace :-)
Total rendering time is down 10% on my machine.
Neat! But now that I look at it, it can be sped up a lot just by using a
regular expression:
Original str_replace method:
1 4260.353 4260.353 44.304%
Magnus' scary hack:
1 423.490 423.490 7.385%
Using preg_replace_callback:
1 21.842 21.842 0.354%
Congratulations! That sounds really fast! Now it's really faster than
the 1.3.1 renderer?
JeLuF