lua-users home
lua-l archive

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


> As far as I can see its because of the over bloated structures inside lua.
> For instance GCObject uses 72 bytes just because it's a union of common
> types one of which being Proto which is 72 bytes long.

Lua never allocates an object of this type. Each paticular type inside
this union uses exactly its own size. The union is only a polite way to
declare a pointer that can point to any of these structures.

-- Roberto