mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-03 18:30:54 +01:00
docs: Add stack nesting information and tail calls
This commit is contained in:
parent
ea494050f3
commit
3f6164a94b
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ Luau has certain limitations around the number of local variables, registers, up
|
||||||
- Constants: 2^23 per function (up from 2^18 in Lua 5.1)
|
- 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)
|
- 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)
|
- Nested functions: 2^15 per function (down from 2^18 in Lua 5.1)
|
||||||
|
- Stack depth: 20000 Lua calls per Lua thread, 200 C calls per C thread (e.g. coroutine.resume nesting is limited to 200)
|
||||||
|
|
||||||
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.
|
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