Skip to content

perf: compute identity for each AST node (fix #422) #446

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

Closed
wants to merge 1 commit into from

Conversation

bcherny
Copy link
Owner

@bcherny bcherny commented May 15, 2022

This diff introduces hashcodes for AST nodes. This gives us an efficient way to recursively compare two AST nodes by value.

This means our optimizer can now more efficiently de-dupe AST nodes, significantly improving performance in cases where schemas emit large unions of complex types.

This supercedes the bandaid in #424.

@bcherny
Copy link
Owner Author

bcherny commented May 15, 2022

#447

@bcherny bcherny closed this May 15, 2022
@bcherny bcherny deleted the perf/hashcode branch May 15, 2022 16:22
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