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

Mailing List Archive: Wikipedia: Wikitech
Template parameter expansion performance?
 

Index | Next | Previous | View Flat


anon.hui at gmail

Jun 6, 2008, 5:29 AM


Views: 175
Permalink
Template parameter expansion performance?

Given that,
1. Template:A1 = {{{1}}} {{{1}}} {{{1}}} {{{1}}} {{{1}}} {{{1}}}
2. Template:A2 = {{#ifeq: {{PAGENAME}} | ... | ... }}

When expanding,
1. {{A1| {{A2}} }}: As Template:A1 contains six of {{{1}}}, it will
compute A2's {{#ifeq:...}} six times, or just one time?
2. {{A1| {{#ifeq: {{PAGENAME}} | ... | ... }} }}: Same as above, how
many times will it compute {{#ifeq:...}}?

If it compute {{#ifeq:...}} six times in the above expansion, is it
possible to reduce this computation count by caching the result of
expression?

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

Subject User Time
Template parameter expansion performance? anon.hui at gmail Jun 6, 2008, 5:29 AM

  Index | Next | Previous | View Flat
 
 


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