Ivan Krstic wrote:
Brion Vibber wrote:
Plain page view: 2798ms
Classic diff: 4856ms (2798ms + 2058ms)
Diff with wikidiff: 3342ms (2798ms + 544ms)
That's a very long time. Is there any chance you can post some more
fine-grained timings (perhaps profiling output) for these pages? What of
the three seconds is network latency, what's overhead, and what's parsing?
Ah, you noticed it's kind of slow? :)
Here's an extract of the biggest offenders from the $wgProfiling output
for the with-memcached page view, which is the 'best case' with things
already cached out and no diff to do:
-total 1 1481.058 1481.058 100.000%
Article::view 1 1236.875 1236.875 83.513%
OutputPage::replaceLinkHolders 2 1213.474 606.737 81.933%
Setup.php 1 161.677 161.677 10.916%
Title::secureAndSplit 752 122.670 0.163 8.283%
Skin::makeBrokenLinkObj 693 89.009 0.128 6.010%
OutputPage::output 1 78.290 78.290 5.286%
Numbers of calls, total time in ms, per-call time in ms, percentage of
total time. (Percentages do not add up to 100% because subroutine
execution time is included.)
Clearly there's still room for improvement in replaceLinkHolders.
-- brion vibber (brion @
pobox.com)