You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which for something that's used a lot can end up saving an awful lot of flash.
Ideally we should be able to have a list of these, and then run over the code and detect when code exists that uses the first pattern when it should use the second.
We have ... make lst; scripts/find_common_code.js bin/projectname.lst at the moment which looks at the final built code and has helped to detect glaring issues, but this doesn't stop new uses of the old pattern coming in which over time can add up to waste a lot of space.
The text was updated successfully, but these errors were encountered:
In Espruino we have quite a few functions that do multiple things...
eg:
turns into:
Which for something that's used a lot can end up saving an awful lot of flash.
Ideally we should be able to have a list of these, and then run over the code and detect when code exists that uses the first pattern when it should use the second.
We have
... make lst; scripts/find_common_code.js bin/projectname.lst
at the moment which looks at the final built code and has helped to detect glaring issues, but this doesn't stop new uses of the old pattern coming in which over time can add up to waste a lot of space.The text was updated successfully, but these errors were encountered: