[SOLVED]memzip vs frozen - what's the difference?
[SOLVED]memzip vs frozen - what's the difference?
memzip vs frozen - what's the difference?
Last edited by jickster on Wed Nov 01, 2017 5:57 pm, edited 1 time in total.
Re: memzip vs frozen - what's the difference?
memzip was created specifically for the teensy and existed long before frozen.
Once frozen was introduced, the teensy port supported both (but only one at a time).
memzip supports uncompressed zip files (i.e. a zipfile containing only uncompressed files) used as a read-only file system. I chose this because they were easy to create on the host, and easy to support on the MCU side, and at the time the only supported filesystem was FAT.
There is also some unmerged code which I'd like to revisit at some point in time which added support for importing modules from a compressed zipfile (since there is now support for uzlib).
Once frozen was introduced, the teensy port supported both (but only one at a time).
memzip supports uncompressed zip files (i.e. a zipfile containing only uncompressed files) used as a read-only file system. I chose this because they were easy to create on the host, and easy to support on the MCU side, and at the time the only supported filesystem was FAT.
There is also some unmerged code which I'd like to revisit at some point in time which added support for importing modules from a compressed zipfile (since there is now support for uzlib).
Re: memzip vs frozen - what's the difference?
So when would I use one vs the other?dhylands wrote: ↑Thu Oct 19, 2017 3:59 pmmemzip was created specifically for the teensy and existed long before frozen.
Once frozen was introduced, the teensy port supported both (but only one at a time).
memzip supports uncompressed zip files (i.e. a zipfile containing only uncompressed files) used as a read-only file system. I chose this because they were easy to create on the host, and easy to support on the MCU side, and at the time the only supported filesystem was FAT.
There is also some unmerged code which I'd like to revisit at some point in time which added support for importing modules from a compressed zipfile (since there is now support for uzlib).
Re: memzip vs frozen - what's the difference?
If available use frozen bytecode. It uses less RAM and starts faster, because it is already compiled.
Re: memzip vs frozen - what's the difference?
Basically, there isn't any advantage to using memzip currently.
memzip can store python source or pre-compiled .mpy files.
Personally, I would use frozen files versus memzip. Using memzip might make sense when/if support for compressed zipfiles is added.
memzip can store python source or pre-compiled .mpy files.
Personally, I would use frozen files versus memzip. Using memzip might make sense when/if support for compressed zipfiles is added.