Instead of storing the layer for each key, store the keycode, so that lookups are considerably faster (one array lookup instead of two). This saves us almost a full millisecond per scan cycle. Furthermore, inline `Layer_.lookup`, saving us even more time. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>pull/159/head
parent
e3f1172244
commit
f0c1c35e8f
Loading…
Reference in new issue