microbit-foundation / microbit-fs

A TypeScript library to manipulate the micro:bit MicroPython filesystem.
https://microbit-foundation.github.io/microbit-fs/
MIT License
12 stars 1 forks source link

Stop checking for the append-script marker in filesystem operations #22

Closed microbit-carlos closed 4 years ago

microbit-carlos commented 4 years ago

Right now, it is constantly checking the micropython hex string to see if it has the old marker to append a script to a known flash address: :::::::::::::::::::::::::::::::::::::::::::

It's not a lot of processing, but the hex strings can be large and we are trying to increase performance.

The hex string provided to the MicropythonFsHex constructor should be correctly formed, and that should be the responsibility of the caller (like the Python Editor).

microbit-carlos commented 4 years ago

Done in a418adead5d7dafbbb35abfd062009c332094bd7.