lua-users home
lua-l archive

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


> I'm not sure I would recommend that in general any more. A
> long-lived (weak) table can grow pretty large if at one point it has
> lots of entries, and will stay that way until it is
> garbage-collected. See the recent thread on "table.new in 5.3".

That is not necessarily true. If the table keeps some trafic (elements
going in and going out), it will be resized eventually.

-- Roberto