lua-users home
lua-l archive

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


> Looking at the executable sizes, I noticed a size increase compared to
> Lua-5.3.5:
> 
> [...]
> 
> Out of curiosity, what is the main factor in the size increase?  the
> new gc?  or is it some debug/test code that will go away?

Of course the new gc adds code, as does to-be-closed variables. But I
think the larger increase comes from the new specialized opcodes. (Lua
5.3 has ~47 opcodes, Lua 5.4 has ~84.)

Checking the size of the .o files, these are the main increases:

- gc alone accounts for ~5 KB.
- the interpreter loop gets more 8 ~KB.

-- Roberto