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

speed up nearestParent layout #275

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

brandonreid
Copy link
Contributor

This PR uses a rowTracker map to track which nodes are in which row. This significantly improves checks for overlaps.

Here's the time it took to calculate the nearestParent layout on 2k nodes before and after this PR:
Before: 28,686.7 ms
After: 1,394.1 ms

@brandonreid brandonreid requested a review from a team as a code owner October 26, 2023 18:05
@netlify
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for prefect-graphs ready!

Name Link
🔨 Latest commit 63897f1
🔍 Latest deploy log https://app.netlify.com/sites/prefect-graphs/deploys/653aaa539c17ba0008ae2e37
😎 Deploy Preview https://deploy-preview-275--prefect-graphs.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@pleek91 pleek91 left a comment

Choose a reason for hiding this comment

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

Yeah boi!

@brandonreid brandonreid merged commit f5a304f into main Oct 26, 2023
4 checks passed
@brandonreid brandonreid deleted the speedup-current-nearestParent branch October 26, 2023 18:13
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