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 excess capacity reservation in Graph::with_capacity #422

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

robertknight
Copy link
Owner

@robertknight robertknight commented Nov 30, 2024

The passed node count should only be used to reserve space in collections that will have an entry for all or most nodes. That doesn't include the lists of input, output and capture node IDs.

The passed node count should only be used to reserve space in collections that
will have an entry for all or most nodes. That doesn't include the list of
input, output and capture node IDs.
@robertknight robertknight merged commit 1fdba14 into main Nov 30, 2024
2 checks passed
@robertknight robertknight deleted the reduce-excess-graph-allocs branch November 30, 2024 21: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.

1 participant