The main thing minifying does over pretokenisation is shortening the variable names. It'll reduce memory usage a bit and in apps that use long variable names in tight loops it'll help with speed - I think someone mentioned around 10% speed boost.
The problem we have is the minifier we have that runs nicely in the browser also doesn't appear to really be maintained any more and has issues (specifically it doesn't realise when an app uses a global variable like g and will rename local variables to also be called g). So it's why there are big danger signs by it - realistically if you enable it for all your apps, Bangle.js will break.
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.
The main thing minifying does over pretokenisation is shortening the variable names. It'll reduce memory usage a bit and in apps that use long variable names in tight loops it'll help with speed - I think someone mentioned around 10% speed boost.
The problem we have is the minifier we have that runs nicely in the browser also doesn't appear to really be maintained any more and has issues (specifically it doesn't realise when an app uses a global variable like
g
and will rename local variables to also be calledg
). So it's why there are big danger signs by it - realistically if you enable it for all your apps, Bangle.js will break.Right now it's not something I'd recommend.