Template talk:W-color

performance hit with many template instances?
I have just tried to include this and all similar templates into Skills by capture location (Nightfall), and I have found myself unable to. There are exactly 460 occurences of the profession colors; I have replaced all of them with their respective color templates.

I have separated the code of that page with a shifting opening nowiki-tag (plus table closing) and a closing tag at the end of the page to make sure that the inclusion of the templates are causing the performance hit. Measurements showed:

at 200 inclusions of the various x-color templates, the waiting time until the preview page was served was 11 seconds.

at 300, it was 20-23 seconds.

at 350, it was 33 seconds

at 400 and above, the preview didn't show at all, giving only a blank page.

These values have been measured repeatedly and were consistent to 1 or 2 seconds at most. Can anyone confirm these results (at least proportionally) or is the problem on my side? --RolandOfGilead 17:54, 29 January 2007 (CST)


 * Can you save the test page to a page in your user-space, so we can try viewing without needing to re-create? --- Barek (talk • contribs) - 17:56, 29 January 2007 (CST)
 * Oh, also, what OS, browser (and version), and internet connection type/speed are you using? --- Barek (talk • contribs) - 18:02, 29 January 2007 (CST)


 * It would be a shame if using too many instances of a template was impossible. The article is rather large, would splitting it up into sub-articles be sensible? Then each sub-article could be saved individually. Of course, this might not solve the problem, and even if it did it might not be a good idea to split an article up just so we can use some templates in it!  &lt;LordBiro&gt;/&lt;Talk&gt; 18:17, 29 January 2007 (CST)
 * Opera 9.02, Win XP Pro SP2, connection DSL: 2048 up, 192 down, ping to gw.gamewikis.org = 172 ms, User:RolandOfGilead/TemplateTest --RolandOfGilead 18:18, 29 January 2007 (CST)
 * I have just tested with IE 6.0, and while that outdated POS doesn't give a time display, it has about the same delay as with Opera. --RolandOfGilead 18:22, 29 January 2007 (CST)


 * I can check other browsers on XP when I get home; but from here, on Win 2000 sp4, using IE6, tests 1, 2, and 3 open instantly, no noticeable lag. But, test 4 refuses to open at all. --- Barek (talk • contribs) - 18:23, 29 January 2007 (CST)
 * Have you tried _editing_ too? Is there a lag if you request the preview window or when you save the page? --RolandOfGilead 18:24, 29 January 2007 (CST)


 * Interesting - just viewing is instant. But, in edit mode, test 1 took 3 seconds, test 2 took 9 seconds, test 3 took 16 seconds, and test 4 thought about it for 15 seconds then when to a blank screen. --- Barek (talk • contribs) - 18:30, 29 January 2007 (CST)
 * Okay, so it seems our results are proportional. Do you propose further testing? edit: The discrepancies in our absolute values might be due to different upload speed; what's your upstream? --RolandOfGilead 18:32, 29 January 2007 (CST)
 * From here, no idea. I can do better testing from home tonight. --- Barek (talk • contribs) - 18:38, 29 January 2007 (CST)