Template talk:Michelin stars

Michelin stars in gif or in svg?

 * Copied from User talk:The Banner, -DePiep (talk) 14:16, 28 October 2014 (UTC)

The question is whether the stars should be in svg or in gif format. THis talk followed:


 * End of quote. -DePiep (talk) 14:16, 28 October 2014 (UTC)


 * Pff, that name change massively backfires. Suddenly the article is 20kB bigger... The Banner talk 18:36, 28 October 2014 (UTC)
 * Squeezed out as much as I could and renamed it to "Michelinstar gif". After a replacement, the list was reduced by 10kB... The Banner talk 18:44, 28 October 2014 (UTC)
 * I disagree with the name change, because it is not relevant for the speed issue, and the " (gif)" name is correct for disambiguation.
 * Yes, 20k bigger. But don't start worrying that it is about the speed issue. They are just 20k characters, not extra links or so. Where do these 20k come from? Old template name: "Michelinstar" (12 chars), new name "Michelin stars (gif)" (20 chars, plus 8). This for all 2587 templates in the text, makes 2587 &times; 8 = 20,696 extra characters. No extra links or so. -DePiep (talk) 19:11, 28 October 2014 (UTC)
 * A lot of people with mobile internet pay per gigabyte, so it is useful to think about them too. The Banner talk 19:17, 28 October 2014 (UTC)
 * (editconflict) The redirects for Michelin stars (gif) are a mess now. Documentation is lost. I don't feel invited to clean up. As long as this does not spoil into Michelin stars, do as you like. If the new situation were clean & correct, I would have made suggestions in the sandbox (like hardcoding the sort code). -DePiep (talk) 19:19, 28 October 2014 (UTC)


 * The banner, I think I'm gonna revert that template move. Saving characters is useless as I mentioned (and see also Article size, for example section WP:SIZERULE. You are on the wrong track trying to reduce page size this way. (also, I don't like a good name being cut too short).
 * Other routes we could follow to improve the page:
 * 1. Remove double links per table. For example, Amsterdam only needs one link per table, not every time mentioned. ✅: repetitions unlinked now.
 * 2. Hardcode sort template (now in michelinstar (gif) as, which is an extra step).
 * maybe more. -DePiep (talk) 19:40, 28 October 2014 (UTC)
 * I have removed the sort-template from the Michelinstar gif template altogether. (that is, sort). So in the resulting page, there will be much less code.

CURRENT PAGE Parser profiling data: CPU time usage	14.101 seconds Real time usage	17.000 seconds Preprocessor visited node count	25092/1000000 Preprocessor generated node count	52729/1500000 Post-expand include size	273738/2048000 bytes Template argument size	2705/2048000 bytes Highest expansion depth	9/40 Expensive parser function count	3/500 Lua time usage	0.412/10.000 seconds Lua memory usage	3 MB/50 MB

YESTERDAYS TEST Parser profiling data: CPU time usage 19.537 seconds Real time usage 22.049 seconds Preprocessor visited node count 45898/1000000 Preprocessor generated node count      63722/1500000 Post-expand include size       1059813/2048000 bytes Template argument size 106447/2048000 bytes Highest expansion depth 9/40 Expensive parser function count 3/500 Lua time usage 0.300/10.000 seconds Lua memory usage       2.93 MB/50 MB

Before: Post-expand include size 1059813/2048000 bytes After: Post-expand include size  273738/2048000 bytes

Or, the loaded page has gone from 1059kB to 273kB! (the sort code is not there, times 2587!). Still, the table sorts OK by star number (with me; please check). I think this is a good result. -DePiep (talk) 21:27, 28 October 2014 (UTC)


 * Hmmm, to be true I hardly understand what you have done. But I see a massive, massive, massive improvement in loading times. So yes, I love your change! The Banner talk 21:49, 28 October 2014 (UTC)
 * Great. Sorting works well too then?
 * Template was in the Michelinstar gif template. It adds code to make them columns sort by number 1, 2, 3 of stars. These sort numbers are invisible. The resulting code is like this for 3-stars:
 * The "3" sorts, the file shows the stars.
 * Now, if we leave out the sort code, the column will be
 * And this shows the file, and it sorts by filename: 1-2-3 is OK too.
 * So I removed that sort from the gif template and now that code is not added (2587 times). That's the speed win. I guess. -DePiep (talk) 23:29, 28 October 2014 (UTC)
 * It looks like it. The Banner talk 23:56, 28 October 2014 (UTC)
 * So I removed that sort from the gif template and now that code is not added (2587 times). That's the speed win. I guess. -DePiep (talk) 23:29, 28 October 2014 (UTC)
 * It looks like it. The Banner <i style="color:maroon">talk</i> 23:56, 28 October 2014 (UTC)