[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: No realloc
- From: "Ivan-Assen Ivanov" <ivanassen@...>
- Date: Fri, 19 Oct 2007 15:56:50 +0300
You can also try the TLSF memory allocator:
http://www.baisoku.org/tlsf/
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.
Ivan-Assen