Are you storing numbers? This might help you: http://www.espruino.com/Performance#array-buffers-are-the-most-efficient-way-to-store-data
Basically normal arrays are flexible but pretty inefficient. All you need to do is use a typed array to store substantially more data - for example if all your data could fit into a single byte, you could fit over 30,000 items in memory.
Yes, they are numbers, actually decimal numbers - around 10 digit long numbers.
I Will try using a typed array and see if it works
Thank you very much!
© Espruino, powered by microcosm.
Report a problem