On Tue, Apr 5, 2011 at 3:30 PM, Paul Copperman
<[email protected]> wrote:
> 2011/4/5 Magnus Manske <[email protected]>:
>> For comparison: WYSIFTW parses [[Barak Obama]] in 3.5 sec on my iMac,
>> and in 4.4 sec on my MacBook (both Chrome 12).
>>
>> Yes, it doesn't do template/variable replacing, and it's probably full
>> of corner cases that break; OTOH, it's JavaScript running in a
>> browser, which should make it much slower than a dedicated server
>> setup running precompiled PHP.
>>
>
> Seriously, the bulk of the time needed to parse these enwiki articles
> is for template expansion. If you pre-expand them, taking care that
> also the templates in <ref>...</ref> tags get expanded, MediaWiki can
> parse the article in a few seconds, 3-4 on my laptop.

So is the time spent with the actual expansion (replacing variables),
or getting the wikitext for n-depth template recursion? Or is it the
parser functions?

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to