summaryrefslogtreecommitdiff
path: root/micropython
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-28 14:37:15 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-12-29 08:59:53 (GMT)
commite570bf4f262180f09d8b6bdef393d529c567b238 (patch)
tree77fd4069c6a21d80f70095843ab6d80c14a866f8 /micropython
parent60fecc946934fc95ed20479e50cc3aacceb58b37 (diff)
apps: calc: Optimize the fields lookup structure
Currently the fields is a list of lists of strings. This will needlessly consume RAM so lets switch it over to a simple string (which is immutable and can be stored in flash). We also replace indices with simple x and y variables. In addition to avoiding a (temporary) memory allocation this is also easier to use when looking up in fields. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'micropython')
0 files changed, 0 insertions, 0 deletions