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

Compiler: bind to tuple, not array #12423

Merged
merged 1 commit into from Aug 29, 2022
Merged

Conversation

asterite
Copy link
Member

This is a very tiny optimization that probably has no effect on perceived memory or time: we are creating an intermediate array every time there's an if in the code. In the compiler's source code that happens around 100K times. So with this change we are allocating 100K less arrays.

Starting from today I'll be sending small and medium PRs to try to optimize the compiler's performance. They won't be as drastic as something like incremental or modular compilation, but I believe these can still help reduce the overall memory and time used.

I also won't overflow this repo with these small PRs: I'll wait for one to be merged before sending the next one.

@straight-shoota straight-shoota added this to the 1.6.0 milestone Aug 29, 2022
@asterite asterite merged commit 7637c04 into master Aug 29, 2022
@asterite asterite deleted the opt/bind-to-tuple-not-array branch August 29, 2022 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants