Module talk:glossary/data

From Wiktionary, the free dictionary
Latest comment: 6 years ago by Jberkel in topic Slow
Jump to navigation Jump to search

Slow[edit]

@Erutuon great idea, but isn't reading the whole page content quite slow? Not sure what sort of caching is done behind the scenes. – Jberkel 22:58, 20 January 2018 (UTC)Reply

@Jberkel: It is cached, because this module is loaded by Module:glossary using mw.loadData, which when it first loads a module creates a virtual copy of the table that is shared by all subsequent loadings of the module with mw.loadData. — Eru·tuon 23:00, 20 January 2018 (UTC)Reply
Ok, cool. So this will autolink labels to the glossary even if there's no corresponding entry in {{Module:labels/data}}? Nifty. – Jberkel 10:57, 21 January 2018 (UTC)Reply