Skip to content

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
@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.

2 participants