lua-users home
lua-l archive

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

Hello steve,

Friday, June 12, 2009, 2:51:33 PM, you wrote:

>> destroy. But lua userdata must live on the heap, so in Lua we are
>> forced into the slow behavior.

one more way to make gc faster - use allocation pools:

  pool = makePool()
  obj1 = pool:alloc(bytes1)
  obj2 = pool:alloc(bytes2)

Best regards,