Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync to upstream/release/549 #707

Merged
merged 24 commits into from
Oct 14, 2022
Merged

Conversation

vegorov-rbx
Copy link
Collaborator

@vegorov-rbx vegorov-rbx commented Oct 13, 2022

  • Reoptimized math.min/max/bit32 builtins assuming at least 2 arguments are used (1-2% lift on some benchmarks)
  • Type errors that mention function types no longer have redundant parenthesis around return type
  • Luau REPL now supports --compile=remarks which displays the source code with optimization remarks embedded as comments
  • Builtin calls are slightly faster when called with 1-2 arguments (~1% improvement in some benchmarks)

@@ -94,7 +94,7 @@ void initHelperFunctions(NativeState& data)
"fast call tables are not of the same length");

// Replace missing fast call functions with an empty placeholder that forces LOP_CALL fallback
for (int i = 0; i < sizeof(data.context.luauF_table) / sizeof(data.context.luauF_table[0]); i++)
for (int i = 0; i < int(sizeof(data.context.luauF_table) / sizeof(data.context.luauF_table[0])); i++)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size_t?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k.

@zeux
Copy link
Collaborator

zeux commented Oct 14, 2022

A couple missing notes:

  • Type errors that mention function types no longer have redundant parens around return type
  • Luau REPL now supports --compile=remarks which displays the source code with optimization remarks embedded as comments
  • Builtin calls are slightly faster when called with 1-2 arguments (~1% improvement in some benchmarks)

@vegorov-rbx
Copy link
Collaborator Author

A couple missing notes:

Added, thank you.

@vegorov-rbx vegorov-rbx merged commit 76070f8 into luau-lang:master Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants