Open
Description
I don't know very much about programming, so I have produced a rather crappy implementation of the stroke input method.
In particular, I load all the stroke data into memory when the input method service is instantiated:
It works, but the downsides are:
- It takes a long time to load on lower-end devices (e.g. takes 1.2 seconds on my cheap phone with ~1.3 GB RAM)
- It requires a lot of memory
-
Most of the time is spent during
loadSequenceCharactersDataIntoMap
. Is there a better way of reading a TSV than what I currently have?
-
Alternatively, given that the stroke data is a constant map, is it possible to bake it into the class so that I don't need to load it every time? Or, can we do something completely different that isn't so memory intensive?