Skip to content

vk: use firstBitSet API #9128

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

Merged
merged 2 commits into from
Aug 22, 2025
Merged

vk: use firstBitSet API #9128

merged 2 commits into from
Aug 22, 2025

Conversation

poweifeng
Copy link
Contributor

This is more efficient than the prevoius way

This is more efficient than the prevoius way
@poweifeng poweifeng added the internal Issue/PR does not affect clients label Aug 20, 2025
if (found) {
return;
}
size_t const firstUnused = unused.firstSetBit();
Copy link
Collaborator

Choose a reason for hiding this comment

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

you probably need to check fro the case where no bits are set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so line 44 checks that unused is not empty

@poweifeng poweifeng enabled auto-merge (squash) August 22, 2025 22:13
@poweifeng poweifeng merged commit 0471c5d into main Aug 22, 2025
16 checks passed
@poweifeng poweifeng deleted the pf/vk-use-bitset branch August 22, 2025 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants