lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On May 2, 2008, at 10:51 AM, Doug Currie wrote:

On Friday, May 02, 2008 Ralph Hempel wrote:

I've written a stripped down best-fit malloc that is very fast on
ARM7 devices with very limited RAM. I still get fragmentation on
the order of 20-30%.

You would expect high fragmentation with best fit.

TLSF has been mentioned on this list a few times:
http://lua-users.org/cgi-bin/namazu.cgi?query=tlsf&sort=score&idxname=lua-l&max=20

I use dlmalloc for embedded software; it's hard to beat.
Just a note: I found out that the 'original' TLSF is GPL/LGPL so it can be used in closed-source situations. (not sure what dual-license provides w/ GPL + LGPL...)

I'd be interested in seeing benchmarks/features of those 2 different implementations compared...