lua-users home
lua-l archive

Re[2]: Next Version of Lua?

[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)
 ...
 pool:destroy()
-- 
Best regards,
 Bulat mailto:Bulat.Ziganshin@gmail.com

AltStyle によって変換されたページ (->オリジナル) /