diff options
author | Damien George <damien.p.george@gmail.com> | 2014-08-28 10:18:40 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-08-28 10:18:40 +0100 |
commit | b796e3d848b30346c11d173f39c06df88c646e2f (patch) | |
tree | 187c4a3b102f8020083f429ee54ef402a5c929ab /py/objdict.c | |
parent | a97e091d4e80bbdb05f4bb27f18b905b50daf018 (diff) | |
download | micropython-b796e3d848b30346c11d173f39c06df88c646e2f.tar.gz micropython-b796e3d848b30346c11d173f39c06df88c646e2f.zip |
py: Reduce fragmentation of GC heap.
Recent speed up of GC allocation made the GC have a fragmented heap.
This patch restores "original fragmentation behaviour" whilst still
retaining relatively fast allocation. This patch works because there is
always going to be a single block allocated now and then, which advances
the gc_last_free_atb_index pointer often enough so that the whole heap
doesn't need scanning.
Should address issue #836.
Diffstat (limited to 'py/objdict.c')
0 files changed, 0 insertions, 0 deletions