From 2c63c5601267fb47c8aae4ef806b0401b2028258 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Wed, 1 Jun 2022 18:37:07 +0300 Subject: [PATCH] One more optimization --- docs/_posts/2022-06-01-luau-recap-may-2022.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/_posts/2022-06-01-luau-recap-may-2022.md b/docs/_posts/2022-06-01-luau-recap-may-2022.md index 67d88f69..86d08b7d 100644 --- a/docs/_posts/2022-06-01-luau-recap-may-2022.md +++ b/docs/_posts/2022-06-01-luau-recap-may-2022.md @@ -86,6 +86,8 @@ end Garbage collection CPU utilization has been tuned to further reduce frame time spikes of individual collection steps and to bring different GC stages to the same level of CPU utilization. +Returning a type-cast local (`return a :: type`) as well as returning multiple local variables (`return a, b, c`) is now a little bit more efficient. + ### 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.