From 3704682d865b29278f96d64293a7388b1b747e39 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 30 Mar 2021 14:43:20 -0700 Subject: [PATCH] Update 2021-03-29-luau-recap-march-2021.md --- docs/_posts/2021-03-29-luau-recap-march-2021.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/_posts/2021-03-29-luau-recap-march-2021.md b/docs/_posts/2021-03-29-luau-recap-march-2021.md index 121e2a39..76dff867 100644 --- a/docs/_posts/2021-03-29-luau-recap-march-2021.md +++ b/docs/_posts/2021-03-29-luau-recap-march-2021.md @@ -67,6 +67,9 @@ We are continuing to squeeze the performance out of all sorts of possible code; * Significantly optimized non-variadic function calls, improving performance by up to 10% on call-heavy benchmarks * Improve performance of `math.clamp`, `math.sign` and `math.round` by 2.3x, 2x and 1.6x respectively * Optimized `coroutine.resume` with ~10% gains on coroutine-heavy benchmarks +* Equality comparisons are now a bit faster when comparing to constants, including `nil`; this makes some benchmarks 2-3% faster +* Calls to builtin functions like `math.abs` or `bit32.rrotate` are now significantly faster in some cases, e.g. this makes SHA256 benchmark 25% faster +* `rawset`, `rawget`, `rawequal` and 2-argument `table.insert` are now 40-50% faster; notably, `table.insert(t, v)` is now faster than `t[#t+1]=v` Note that we work off a set of benchmarks that we consider representative of the wide gamut of code that runs on Luau. If you have code that you think should be running faster, never hesitate to open a feature request / bug report on Roblox Developer Forum!