On Mon, Aug 31, 2009 at 3:56 AM, Domas Mituzas<midom.lists(a)gmail.com> wrote:
asking on-wiki doesn't really makes much sense, as I don't read it ;-p
Anyway, we have to ensure, that most of wikis (at least top20 ones)
have got ridden of curly braces and any other expensive parser stuff
in these messages, as that costs them up to 10 milliseconds per
pageview (if anyone writes a bot to do this automatically, I'd gladly
run it with my global super duper privileges :)) :
In the long-term, wouldn't it be smarter to make some of these stable
and quasi-stable tokens automatically cache in their evaluated state?
For something like {{SITENAME}} there is little reason to be looking
it up every single time the message loads, so why not teach Mediawiki
to pre-evaluate that and similar items before putting it in the
message cache? For the rare case that such things do change you'd
need to make sure that the cache does get rebuilt periodically (or
have someway to detect such changes and deliberately refresh the
cache), but such changes are so rare that adding some lag on update
might be acceptable.
-Robert Rohde