In [1] they mention that contiki-os has a compacting memory allocator , which solve the fragmentation issue(at the cost of some latency). contiki-os is open-source.
In a previous thread, damien mentioned the complexity of making such allocator. Maybe taking on from contiki will work?
a solution to memory fragmentation?
Re: a solution to memory fragmentation?
here's the link to the source(from contiki):
https://github.com/contiki-os/contiki/b ... lib/mmem.h
https://github.com/contiki-os/contiki/b ... lib/mmem.c
https://github.com/contiki-os/contiki/b ... lib/mmem.h
https://github.com/contiki-os/contiki/b ... lib/mmem.c
Re: a solution to memory fragmentation?
No, taking it from contiki doesn't help. Compacting memory allocator is a trivial algorithm. It's adapting it for particular requirements and building the whole system ("world") where this compaction happens transparently is non-trivial. Contiki in particular doesn't do that.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/