lua-users home
lua-l archive

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

This is an option too, but in that case, i need to know wich objects are marked as 'free' from the LUA engine. An right now, i do not know if there is a way to achieve this.

Rgds, Sylvain.

Le 02/09/2010 21:02, Florian Weimer a écrit :
* Sylvain Fabre:

If not, i would suggest to add  (in lua 5.3 :) ? ) a way to allow the
increase/decrease of the memory counter used in the garbage collector
from the "external world" (either with a new lua_gc method or with a
Any suggestion or ideas on this ?
Have you tried adding a function which frees the picture memory to
your API?  That would mean that you could sustain a higher picture
allocation/deallocation rate independently of the garbage collector
implementation.  For such large and comparatively rare objects, the
additional burden on the programmer does not seem that large.

Obviously, it depends a lot on your environment if this is feasible.

Sylvain FABRE
Fixe: 09 72 11 30 24
Mobile: 06 30 12 72 34
Fax : 09 72 11 10 71