Confusion with compiler options #1633
Replies: 1 comment 2 replies
-
Hello!
For the second setting, Luau uses an optimization for global table accesses that we have detailed here https://luau.org/performance#importing-global-access-chains |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm having trouble understanding some things related to the compilation of Luau scripts and I would really appreciate some clarification regarding these
lua_CompileOptions
:vector
Why is
vector
separated like this? What special behavior does it enable? And just why would you want to have "alternative" builtin for vectors? Is this like an alias? I just dont really get this part at all.mutable globals optimization
Maybe I misunderstand what exactly globals are in lua, but couldn't you add more (mutable) globals to a VM after some code is already compiled? What happens then? You have to recompile everything with that mutable global added to this list?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions