mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-07 12:20:53 +01:00
Update 2021-03-29-luau-recap-march-2021.md
More flavor text for perf
This commit is contained in:
parent
b419d55306
commit
530e033d12
1 changed files with 4 additions and 0 deletions
|
@ -23,10 +23,14 @@ Luau is our new language that you can read more about at [https://roblox.github.
|
|||
|
||||
## Performance improvements
|
||||
|
||||
We are continuing to squeeze the performance out of all sorts of possible code; this is an ongoing process and we have many improvements in the pipeline, big and small. These are the changes that are already live:
|
||||
|
||||
* 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
|
||||
|
||||
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 we could be running faster, never hesitate to open a feature request / bug report on Roblox Developer Forum!
|
||||
|
||||
## Library changes
|
||||
|
||||
* Added the `debug.info` function which allows retrieving information about stack frames or functions; similarly to `debug.getinfo` from Lua, this accepts an options string that must consist of characters `slnfa`; unlike Lua that returns a table, the function returns all requested values one after another to improve performance.
|
||||
|
|
Loading…
Add table
Reference in a new issue