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

Minor performance optimizations #1432

Merged
merged 3 commits into from
Feb 24, 2021
Merged

Minor performance optimizations #1432

merged 3 commits into from
Feb 24, 2021

Conversation

pepeiborra
Copy link
Collaborator

HMS.size is O(n) and getPathId gets called in the rawDependencyInformation loop, causing potentially quadratic complexity. This is not noticeable in small/medium projects, but it becomes quite expensive in projects with >10k modules, dominating startup times.

HMS.size is O(n) and getPathId gets called in the rawDependencyInformation loop
Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

lgtm

@pepeiborra pepeiborra added the merge me Label to trigger pull request merge label Feb 24, 2021
Copy link
Member

@Ailrun Ailrun left a comment

Choose a reason for hiding this comment

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

Awesome!

@mergify mergify bot merged commit 2749371 into master Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants