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

Shirnk stack size of FixedBitset #118

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

james7132
Copy link
Collaborator

The length in the Vec is redundant with the separate length in bits, making FixedBitset have some stack size overhead compared to a Vec. This PR removes that extra length, using the bit length to figure out the block length when necessary.

Ran benchmarks and saw no significant regressions.

@james7132 james7132 merged commit 6168da2 into petgraph:master Mar 20, 2024
14 checks passed
@zh-jq-b
Copy link

zh-jq-b commented Mar 22, 2024

This change makes FixedBitSet !Send, which breaks our code bytedance/g3#191

@james7132
Copy link
Collaborator Author

That should be fixed as of 0.5.6 and #124.

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.

None yet

2 participants