[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Common allocation sizes for Lua
- From: "Alex Davies" <alex.mania@...>
- Date: Thu, 11 Sep 2008 15:44:23 +0800
You could create a sub-allocator for 32 bytes (x86), for allocating/freeing
tables. I don't know how much the savings would be though - the node /
array parts are what are expensive to create and resize. Other then that,
not much could be gained from fixed size allocations (strings include a
header + the string in the single allocation, as do userdata, so neither of
these could be improved which leaves only coroutines and tables from
runtime-allocated structures).
- Alex