lua-users home
lua-l archive

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


I was wondering, since I've seen this done occasionally while
browsing other peoples' code: does it in any real way aid garbage
collection (either in terms of immediacy of collection or
gc running time) to explicitly nil-out variables which you
know you won't be accessing again?

I can see how this would be of some benefit for global
variables which would otherwise hang around indefinitely,
but what about short-lived local variables and the contents
of local tables, etc?

Adam D. Moss   . ,,^^   co:3
"Responsible parents don't raise kids in West Virginia."