mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-03 18:30:54 +01:00
docs: Document child function limit
This commit is contained in:
parent
35f337d2ce
commit
92942a2c54
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ Luau has certain limitations around the number of local variables, registers, up
|
|||
- Registers: 255 per function (same as all versions of Lua, this includes local variables and function arguments)
|
||||
- Constants: 2^23 per function (up from 2^18 in Lua 5.1)
|
||||
- Instructions: 2^23 per function (up from 2^17 in Lua 5.1, although in both cases the limit only applies to control flow)
|
||||
- Nested functions: 2^15 per function (down from 2^18 in Lua 5.1)
|
||||
|
||||
Note that Lua 5.3 has a larger upvalue limit (255) and a larger constant limit (2^26); existing Luau limits are likely sufficient for reasonable use cases.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue