espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.73k stars 741 forks source link

Pretokenise JS functions included with `generate_js` #2461

Open gfwilliams opened 5 months ago

gfwilliams commented 5 months ago

Right now, in scripts/build_jswrapper.py we just include the JS files as-is

However we could pretokenise them and make them run faster as well as saving some space.

Only issue is our tools for pretokenising are either in JS or C, not Python (and I don't think we require Node.js to be installed for a compile currently), so I guess maybe we'd have to either: