keyboard/altgr: precompute data includes
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 28 Jan 2024 14:15:30 +0000 (15:15 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 Jan 2024 17:17:48 +0000 (18:17 +0100)
Best case from 161ms to 17ms for index to load everything.

Makefile

index f48ffa7301aff2bf96ec135be52e64b525aae8c3..942727c6199883a2e5b2c811fedf100891f23573 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ plan.plp: TODO
 UPDATE: $(download)
        $(call cmdsave,git log -1 --date=short --pretty="%ad    %s")
 
-cache: $(patsubst %.inc.pl,data/%.json,$(wildcard charset-*.inc.pl) writing-latn.inc.pl)
+cache: $(patsubst %.inc.pl,data/%.json,$(wildcard charset-*.inc.pl) $(wildcard keyboard/altgr/*.inc.pl) writing-latn.inc.pl)
 word: word/put.min.js data/wordlist.en.json data/wordlist.nl.json data/wordlist.ru.json data/wordpairs.json
 
 word/put.js: $(download)