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

Direct function calls #251

Merged
merged 22 commits into from
Aug 7, 2024
Merged

Direct function calls #251

merged 22 commits into from
Aug 7, 2024

Conversation

robinheghan
Copy link
Member

This branch adds an optimization that compiles function calls to direct function calls when a qualified function is called with the right arity. This vastly improves performance and reduces the chance of stack overflows occuring. As a side benefit, more functions are now named which makes it easier to use the JavaScript debugger and profiler.

Also added a few improvements to source mapping while I was at it.

@robinheghan robinheghan merged commit adfe56f into main Aug 7, 2024
4 checks passed
@robinheghan robinheghan deleted the direct-function-calls branch August 7, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant