lua-users home
lua-l archive

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



On 11 Sep 2008, at 06:19, Thomas Harning wrote:

Just wondering... are there any common allocation sizes for Lua that could perhaps take advantage of a memory pool (like boost's.. only coded in C instead)?

If you're suffering performance problems that you believe are due to memory allocation then plug in another memory allocator. Such as dlmalloc. Do NOT write your own.

If you're still suffering performance problems and you are absolutely sure that it is the memory allocator, then better start reading some papers. Start here: http://www.memorymanagement.org/bib/ and here: http://www.cs.kent.ac.uk/people/staff/rej/gc.html .

If your summary of Boosts' memory pool template class is correct, then they had better start reading some papers too.

drj