a solution to memory fragmentation?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
thorwald
Posts: 15
Joined: Wed Mar 19, 2014 2:38 pm

a solution to memory fragmentation?

Post by thorwald » Tue Jan 13, 2015 11:38 am

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?


pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: a solution to memory fragmentation?

Post by pfalcon » Thu Jan 15, 2015 9:42 am

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/

Post Reply