lua-users home
lua-l archive

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

You can also try the TLSF memory allocator:

We've been using exclusively it for the Lua VM in our games for about
an year now and have traced no bugs to it.
We're about to ship a game using it very soon.
It's written by somebody from Vicarious Visions, a game development studio
specialized in handheld gaming platforms - some of which are very
resource-constrained embedded ARM systems.

It's very fast (constant-time malloc/free), and has a "real" realloc.
In fact, when we integrated it first about an year ago, it didn't, it
used alloc+memcpy+free, and we had a noticeable performance gain when
TLSF 1.8 introduced a "real" realloc.