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

Make 'removeOrphans' optional on replaceNodeIdsConnectedTo #330

Conversation

yamadapc
Copy link
Contributor

@yamadapc yamadapc commented Feb 5, 2025

The graph clean-up is a traversal, so there's a large linear performance hit if
we clean-up on every modification to the graph. This makes it configurable to
disable clean-up on replacement.

Test Plan: yarn mocha src/packages/core/graph

Created using spr 1.3.5
Created using spr 1.3.5
yamadapc added a commit that referenced this pull request Feb 5, 2025
The graph clean-up is a traversal, so there's a large linear performance hit if
we clean-up on every modification to the graph. This makes it configurable to
disable clean-up on replacement.

Test Plan: `yarn mocha src/packages/core/graph`

Pull Request: #330
@yamadapc yamadapc merged commit b509ab3 into main Feb 6, 2025
18 checks passed
@yamadapc yamadapc deleted the spr/yamadapc/make-removeorphans-optional-on-replacenodeidsconnectedto branch February 6, 2025 00:04
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