
On Wed, Feb 16, 2011 at 10:17:17AM +0100, Martin Gruner wrote:
Hi Thomas,
we would definitely be interested. Can I ask you to do the following: - open a bug report for this - attach a test case which shows the performance problem (e. g. a file with data which causes the problem when fed into the function) - attach your patch
After wrangling for a while with Bugzilla, I gave up (too tight in time). Anyway, I attach two patches here, in case they are useful: * output_filter_text_url.patch * html_utils.patch Both patches are taken against 2.4.7. The first one applies cleanly to HEAD, the second doesn't (although the code follows the same pattern). Both are variations on the same theme: replace a loop doing substitutions over and over by just one substitution. Both cut page latencies in some cases by as much as 30 seconds (on very big pages, when there are lots of links). I hope it's useful as is. Regards -- tomás