Probably the function was inlined because I was using gcc 9 Performance impact is indeed minimal.
If you want to get rid of spiFlashReadWrite you can merge this pull request https://github.com/espruino/Espruino/pull/1850
Edit: just force-pushed an update to the branch as I forgot to add an entry in Changelog
@FransM started
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.
Probably the function was inlined because I was using gcc 9
Performance impact is indeed minimal.
If you want to get rid of spiFlashReadWrite you can merge this pull request
https://github.com/espruino/Espruino/pull/1850
Edit: just force-pushed an update to the branch as I forgot to add an entry in Changelog