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

Perform function analysis once #362

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Perform function analysis once #362

merged 1 commit into from
Jun 10, 2024

Conversation

Hydrocharged
Copy link
Collaborator

Functions did their entire overload resolution during Eval, meaning if a function was called 1000 times, then we did overload resolution 1000 times for the exact same function. This changes it so that we only do it once. This optimization was made while investigating our performance benchmarks.

Of note, errors found during overload resolution are stashed for later. This ensures that other steps in the pipeline retain their error priority. Previously, when this was all done in Eval, stashing wasn't needed.

@Hydrocharged Hydrocharged requested a review from zachmu June 10, 2024 10:28
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

@Hydrocharged Hydrocharged merged commit 820b846 into main Jun 10, 2024
12 checks passed
@Hydrocharged Hydrocharged deleted the daylon/performance branch June 10, 2024 23:56
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.

2 participants