mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update docs/_posts/2022-06-01-luau-recap-may-2022.md
Co-authored-by: dcope-rbx <91100513+dcope-rbx@users.noreply.github.com>
This commit is contained in:
parent
2c63c56012
commit
3e552aef8f
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ Returning a type-cast local (`return a :: type`) as well as returning multiple l
|
|||
|
||||
### Function inlining and loop unrolling
|
||||
|
||||
In open-source release of Luau, when optimization level 2 is enabled, compiler will now perform function inlining and loop unrolling.
|
||||
In the open-source release of Luau, when optimization level 2 is enabled, the compiler will now perform function inlining and loop unrolling.
|
||||
|
||||
Only loops with loop bounds known at compile time, such as `for i=1,4 do`, can be unrolled. The loop body must be simple enough for the optimization to be profitable; compiler uses heuristics to estimate the performance benefit and automatically decide if unrolling should be performed.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue