The biggest culprits usually are:
Simple arrays being used to store numbers. Use a typed array, a string, or anything other than a simple array.
Code size. Use the minifier in the IDE.
Also there's some good news on the horizon, and some good news in the present.
Present: The Espruino Board, despite the spec of the chips saying it only has 48k of ram, seems to have 64k (and 512k flash, too). This gets you 2600 jsvars. I autobuild them nightly and they get posted here: http://drazzy.com/espruino/bigram
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Well - first there's this: http://www.espruino.com/Performance
The biggest culprits usually are:
Simple arrays being used to store numbers. Use a typed array, a string, or anything other than a simple array.
Code size. Use the minifier in the IDE.
Also there's some good news on the horizon, and some good news in the present.
Present: The Espruino Board, despite the spec of the chips saying it only has 48k of ram, seems to have 64k (and 512k flash, too). This gets you 2600 jsvars. I autobuild them nightly and they get posted here: http://drazzy.com/espruino/bigram
Future: http://forum.espruino.com/conversations/1615/newest/
3250 jsvars with bigram (2250 with normal builds), and packed arrays to make simple arrays filled with numbers a little less painful.