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

fix: schema loading performance #923

Conversation

p-spacek
Copy link
Contributor

What does this PR do?

reduce the time to resolve schemas content
replace Array with Set
performance of checking if the Set.has item is better than Array.indexOf

What issues does this PR fix or reference?

no ref

Is it tested? How?

manually with +-20 large schemas (connected between each other)
loading time from 3.5sec decreased to 1.5sec
yarn test is one second (20sec->19sec) faster on my side - but it's not really a reliable claim :)

Copy link
Collaborator

@gorkem gorkem left a comment

Choose a reason for hiding this comment

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

lgtm

@gorkem
Copy link
Collaborator

gorkem commented Oct 7, 2023

rebased and pushed

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