Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# vob 3.0.6 (2025-08-14)

* Transparently optimise `iter_{set|unset}_bits(...).count()` to use platform
"count bits" directly, rather than forcing the full iterator to execute.
Depending on your machine, this can lead to savings of 2-3 orders of magnitude.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if it worth mentioning, but we updated the 'normal' interator.count() too.
It now does math instead of exhausting the iterator (range.count())

Copy link
Member Author

Choose a reason for hiding this comment

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

I did think briefly think about adding that in, but I came down on the side of "don't distract readers from the major things that will benefit them". I think the iter_bits.count() optimisation is something that a lot of users will really benefit from.

* Implement `DoubleEndedIterator` and `FusedIterator` for `Iter{Set|Unset}Bits`.


# vob 3.0.5 (2025-06-25)

* Add `unchecked_get` and `unchecked_set`.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "vob"
description = "Vector of Bits with Vec-like API and usize backing storage"
repository = "https://github.com/softdevteam/vob/"
version = "3.0.5"
version = "3.0.6"
authors = ["Laurence Tratt <laurie@tratt.net>"]
readme = "README.md"
license = "Apache-2.0/MIT"
Expand Down