Module talk:Flags: Difference between revisions

Content deleted Content added
Performance: Replied
Line 58:
Is this module faster or slower than the old [[Wikipedia:WikiProject Flag Template|flag templates]] based on [[:Category:Country data templates|Country data system]]? <span style="font-family:Segoe Script">[[User:Petr Matas|Petr Matas]]</span> 01:15, 22 June 2014 (UTC)
: I have done some measurements myself. Analysis of a page with 50 {{tl|Flagicon}}s takes 429±65 ms, analysis of a page with 50 {{tl|Flags}} takes 472±66 ms of CPU time. The performance difference is lower than the measurement error. <span style="font-family:Segoe Script">[[User:Petr Matas|Petr Matas]]</span> 10:47, 23 June 2014 (UTC)
 
::Perhaps it would help performance to convert [[Module:Flags/MasterData]] to a JSON page and load its contents using <code>mw.text.jsonDecode()</code>. &ndash;&nbsp;[[User:Mxn|Minh <span style="font-variant: small-caps;">Nguyễn</span>]]&nbsp;<sup>[[User talk:Mxn|<span style="display: inline-block;">&#x1f4ac;</span>]]</sup> 05:33, 13 June 2019 (UTC)