Memory Allocation

lua-users home
wiki

Difference (from prior major revision) (no other diffs)

Changed: 3c3
Lua allows you the facility to add your own memory allocation management by replacing code in lmem.c. You may want to replace the standard allocation routines in order to keep Lua's allocation separate or introduce an allocator which may cause less fragmentation.
Lua allows you the facility to add your own memory allocation management by calling [lua_setallocf]. You may want to replace the standard allocation routines in order to keep Lua's allocation separate or introduce an allocator which may cause less fragmentation.

Lua's memory management

Lua allows you the facility to add your own memory allocation management by calling [lua_setallocf]. You may want to replace the standard allocation routines in order to keep Lua's allocation separate or introduce an allocator which may cause less fragmentation.

Memory allocators

Here are some memory allocation libraries.


See also: GarbageCollection, GarbageCollectingWeakTables
RecentChanges · preferences
edit · history
Last edited July 4, 2008 8:44 pm GMT (diff)