Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Speed of parsing messages (was: how to chang {{SITENAME}})

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


gtisza at gmail

Sep 15, 2009, 5:28 PM

Post #1 of 6 (318 views)
Permalink
Speed of parsing messages (was: how to chang {{SITENAME}})

Domas Mituzas <midom.lists <at> gmail.com> writes:
> 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 :)) :
<snip long list of messages>

So what exactly should be avoided? FlaggedRevs has some messages that appear on
most pageviews and transclude other messages (such as
http://translatewiki.net/wiki/MediaWiki:Revreview-quick-none/en ), should those
be substituted in too? What about constructs like {{PLURAL}} which don't require
pulling the content of another message?


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


midom.lists at gmail

Sep 16, 2009, 4:01 AM

Post #2 of 6 (289 views)
Permalink
Re: Speed of parsing messages (was: how to chang {{SITENAME}}) [In reply to]

> So what exactly should be avoided? FlaggedRevs has some messages
> that appear on
> most pageviews and transclude other messages (such as
> http://translatewiki.net/wiki/MediaWiki:Revreview-quick-none/en ),

ouch.

> should those
> be substituted in too?

yes.

> What about constructs like {{PLURAL}} which don't require
> pulling the content of another message?

same.

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


gerard.meijssen at gmail

Sep 16, 2009, 4:33 AM

Post #3 of 6 (290 views)
Permalink
Re: Speed of parsing messages (was: how to chang {{SITENAME}}) [In reply to]

Hoi,
The plural construct is used when it is not clear how many items will be
available. Consequently there is not much to be done about it. Also the
effect of plural is not the same for every languages. Welsh allows for six
ways of indicating a multitude.
Thanks,
GerardM

2009/9/16 Domas Mituzas <midom.lists[at]gmail.com>

> > So what exactly should be avoided? FlaggedRevs has some messages
> > that appear on
> > most pageviews and transclude other messages (such as
> > http://translatewiki.net/wiki/MediaWiki:Revreview-quick-none/en ),
>
> ouch.
>
> > should those
> > be substituted in too?
>
> yes.
>
> > What about constructs like {{PLURAL}} which don't require
> > pulling the content of another message?
>
> same.
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


rlullmann at gmail

Sep 16, 2009, 8:35 AM

Post #4 of 6 (289 views)
Permalink
Re: Speed of parsing messages (was: how to chang {{SITENAME}}) [In reply to]

Like maybe: $1 thingy<!-- {{PLURAL}} not needed -->

? does that do it?

Robert

On Wed, Sep 16, 2009 at 4:32 PM, Roan Kattouw <roan.kattouw[at]gmail.com> wrote:
> 2009/9/16 Tisza Gergő <gtisza[at]gmail.com>:
>> Some of them may be rephrased, and some localizations do not really need them at
>> all. Foe example, in Hungarian "<number> <noun>" constructs the noun is always
>> in singular, so we've been using "{{PLURAL:$1|one|$1}} thingy" because the
>> automated checks complain if they see no PLURAL, but on hu.wikipedia it could be
>> replaced with "$1 thingy" without trouble. (I'm not sure there are actually
>> frequently loading messages which have PLURAL, but it's worth checking.)
>>
> Ideally there'd be a better way to mark a message as "yes, I know this
> usually uses PLURAL, but this language doesn't need it here", that'd
> also save useless efforts by the parser in expanding PLURAL.
>
> Roan Kattouw (Catrope)
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

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


midom.lists at gmail

Sep 17, 2009, 3:44 AM

Post #5 of 6 (272 views)
Permalink
Re: Speed of parsing messages (was: how to chang {{SITENAME}}) [In reply to]

On Sep 16, 2009, at 6:35 PM, Robert Ullmann wrote:

> Like maybe: $1 thingy<!-- {{PLURAL}} not needed -->
>
> ? does that do it?

the shortcut code looks for {{, it finds it in this case...

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


gerard.meijssen at gmail

Sep 17, 2009, 3:47 AM

Post #6 of 6 (272 views)
Permalink
Re: Speed of parsing messages (was: how to chang {{SITENAME}}) [In reply to]

Hoi,
It can be surpressed for particular messages for particular languages. The
observation is correct and we welcome people who help us code this.
Thanks,
GerardM

2009/9/16 Aryeh Gregor
<Simetrical+wikilist[at]gmail.com<Simetrical%2Bwikilist[at]gmail.com>
>

> On Wed, Sep 16, 2009 at 9:18 AM, Tisza Gergő <gtisza[at]gmail.com> wrote:
> > Some of them may be rephrased, and some localizations do not really need
> them at
> > all. Foe example, in Hungarian "<number> <noun>" constructs the noun is
> always
> > in singular, so we've been using "{{PLURAL:$1|one|$1}} thingy" because
> the
> > automated checks complain if they see no PLURAL, but on hu.wikipedia it
> could be
> > replaced with "$1 thingy" without trouble.
>
> I'm pretty sure this warning can be suppressed on a per-language basis.
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.