[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Help needed finding large globals
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 6 Apr 2009 20:45:52 -0300
> > As for strings, they're stored in a global table, accessible in one of lua
> > state's fields, called "strt" IIRC; you can easily write a C function to
> > traverse it.
> >
>
> I would be extremely happy to see at least a function to get the
> actual size in *bytes* of a given object in 5.2. Perhaps in the debug
> library.
>
> Is such a function possible?
See http://lua-users.org/lists/lua-l/2009-04/msg00030.html but that does not
traverse the string table.