commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
0745eda04ad0e1cb51244c2b334a8558a378c6c4 | Lucas Van Laer | 2025-04-25T17:48:08 | fix: improve debug_assertions, remove unused `#[allow(clippy::todo)]` + others | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 6708f2ac..f56c1010 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -207,7 +207,7 @@ impl Container {
self.ensure_correct_store()
}
}
- ... | 4 | 8 | 7 |
fd4c8292b8e593161eb46f149bd7e8bf6686a40b | Lucas Van Laer | 2025-04-25T17:38:19 | fix: remove unused method | diff --git a/roaring/src/bitmap/store/bitmap_store.rs b/roaring/src/bitmap/store/bitmap_store.rs
index f90cf596..b29541ea 100644
--- a/roaring/src/bitmap/store/bitmap_store.rs
+++ b/roaring/src/bitmap/store/bitmap_store.rs
@@ -24,10 +24,6 @@ impl BitmapStore {
BitmapStore { len: 0, bits: Box::new([0; BITMAP_LE... | 1 | 0 | 4 |
b2d2657a7342ec4761adfe15d77455f1a6589d18 | Lucas Van Laer | 2025-04-20T10:28:31 | feat: run container statistics | diff --git a/roaring/src/bitmap/statistics.rs b/roaring/src/bitmap/statistics.rs
index f62762dd..41ec8d7a 100644
--- a/roaring/src/bitmap/statistics.rs
+++ b/roaring/src/bitmap/statistics.rs
@@ -65,10 +65,13 @@ impl RoaringBitmap {
let mut n_containers = 0;
let mut n_array_containers = 0;
let... | 1 | 12 | 4 |
340dff2e8c2f8aac9e739c8492339d6254f1da0b | Lucas Van Laer | 2025-04-20T09:43:56 | test: interval store
Integrates interval stores in the current tests by implementing
`BitSetLike` for `IntervalStore`. This commit also fixes all the
bugs these tests discovered. | diff --git a/roaring/src/bitmap/arbitrary.rs b/roaring/src/bitmap/arbitrary.rs
index 7a3d2eb3..88eb7d52 100644
--- a/roaring/src/bitmap/arbitrary.rs
+++ b/roaring/src/bitmap/arbitrary.rs
@@ -1,7 +1,7 @@
#[cfg(test)]
mod test {
- use crate::bitmap::container::Container;
- use crate::bitmap::store::{ArrayStore, B... | 8 | 303 | 186 |
c348cbc8fd5fa9f227e2365f75d9f9e46ca1c0c1 | Zachary Dremann | 2025-04-16T04:22:05 | add tests for deserialization errors
Based on tests added in CRoaring at
<https://github.com/RoaringBitmap/CRoaring/pull/665> | diff --git a/roaring/tests/serialization.rs b/roaring/tests/serialization.rs
index 78325017..3993d3ad 100644
--- a/roaring/tests/serialization.rs
+++ b/roaring/tests/serialization.rs
@@ -541,3 +541,188 @@ fn test_strange() {
let new = serialize_and_deserialize(&original);
assert_eq!(original, new);
}
+
+fn a... | 1 | 185 | 0 |
a21ecf6e86caf56dedbe9991c7d87f4a4675074e | Zachary Dremann | 2025-04-16T04:18:45 | require strictly increasing container keys | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index 615bf82e..f1033b8f 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -205,9 +205,18 @@ impl RoaringBitmap {
let mut containers = Vec::with_capacity(size);
+ let mu... | 1 | 9 | 0 |
948b7bd2c91b82e2ce49dad550ab11197c2890b9 | Zachary Dremann | 2025-04-16T04:18:13 | dont deserialize a run container with overlapping ranges | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index 6947d3d7..615bf82e 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -231,8 +231,15 @@ impl RoaringBitmap {
let cardinality = intervals.iter().map(|[_, len]| *len a... | 1 | 7 | 0 |
251d961a33ecf1c7f19ab043ee16a5558b3450da | Lucas Van Laer | 2025-04-18T19:58:53 | feat: add run store | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index 41033d3e..61392c76 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -7,6 +7,8 @@ use core::convert::Infallible;
use std::error::Error;
use std::io;
+use super::store::IntervalSto... | 4 | 287 | 414 |
004e11e90f1a0f077aacaeea4f781a683272fac0 | Lucas Van Laer | 2025-04-18T15:48:16 | feat: run store iterator | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 4adf7d2d..2f8a671a 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -1,5 +1,7 @@
#![allow(unused)]
use alloc::vec::Vec;
+use core::borrow::Borrow;
+use ... | 1 | 534 | 5 |
28b9cb7980041c6fea61dc29eeec8b82e0adf97b | Zachary Dremann | 2025-04-16T03:42:16 | dont deserialize a run container with zero runs | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index fa90cd13..6947d3d7 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -216,6 +216,12 @@ impl RoaringBitmap {
let store = if is_run_container {
let runs ... | 1 | 6 | 0 |
892fe993aa40f91082efed344d52ddc21431c55e | Lucas Van Laer | 2025-04-14T20:06:55 | feat: run store symmetric difference | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index a8b5c0d6..4adf7d2d 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -1,6 +1,7 @@
#![allow(unused)]
use alloc::vec::Vec;
-use core::ops::{BitAnd, BitOr, ... | 1 | 119 | 8 |
bd04ab7feb3ceb515096cd27e4a0b22725ce14e4 | Lucas Van Laer | 2025-04-13T08:10:01 | feat: run store difference | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 81531bd5..a8b5c0d6 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -1,6 +1,6 @@
#![allow(unused)]
use alloc::vec::Vec;
-use core::ops::{BitAnd, BitOr, ... | 1 | 35 | 1 |
b901e419128a42abc54b757edebc5526cbd5704c | Lucas Van Laer | 2025-04-13T08:07:55 | feat: run store intersection | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index d629ac6c..81531bd5 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -1,12 +1,12 @@
#![allow(unused)]
use alloc::vec::Vec;
-use core::ops::{BitOr, BitOrA... | 1 | 52 | 2 |
04a8d038802c8c73efc54aca93ce45668ea462e8 | Lucas Van Laer | 2025-04-13T07:41:31 | feat: run store union and miscellaneous stuff | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 0f0fcfd5..d629ac6c 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -1,6 +1,6 @@
#![allow(unused)]
use alloc::vec::Vec;
-use core::ops::RangeInclusive;
... | 1 | 92 | 1 |
ada90cdea7b8a2245992f0ab7f4b4f1c30ea0c55 | Lucas Van Laer | 2025-04-13T06:44:02 | fix: llvm-cov uncovered bugs | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index e2040d93..0f0fcfd5 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -60,35 +60,6 @@ impl IntervalStore {
.is_err()
}
- fn drain_ove... | 1 | 99 | 33 |
99393170afa2494bcdf9218c597723d658247acf | Lucas Van Laer | 2025-04-12T19:36:06 | fix: run store wrong insert range with begin overlap and concescutive end | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 34d75051..e2040d93 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -117,7 +117,7 @@ impl IntervalStore {
if to_insert < self.0.len()... | 1 | 9 | 1 |
5b01331dd4052e3934a829e60a55ded5698e804b | Lucas Van Laer | 2025-04-13T06:11:43 | fix: failing ci | diff --git a/roaring/src/bitmap/store/bitmap_store.rs b/roaring/src/bitmap/store/bitmap_store.rs
index 260a2922..c507f9dc 100644
--- a/roaring/src/bitmap/store/bitmap_store.rs
+++ b/roaring/src/bitmap/store/bitmap_store.rs
@@ -336,7 +336,7 @@ impl BitmapStore {
self.bits.iter().zip(other.bits.iter()).map(|(&a,... | 2 | 7 | 7 |
966ac1445603744226925e582eaf4997cc205cab | Lucas Van Laer | 2025-04-12T18:21:44 | feat: runs store select | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 6aa51dd3..f0402efd 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -577,6 +577,18 @@ impl IntervalStore {
}
rank
}
+
+ pub fn s... | 1 | 28 | 0 |
561780f454d9b4d110b0fa6bb00c04ac06d27710 | Lucas Van Laer | 2025-04-12T17:11:04 | feat: runs store rank | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index d9c47781..6aa51dd3 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -563,6 +563,20 @@ impl IntervalStore {
pub fn max(&self) -> Option<u16> {
... | 1 | 32 | 6 |
37ee97486bd532587f5277cd53d8833f1b5ba19c | Lucas Van Laer | 2025-04-12T17:01:28 | feat: runs store min max | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index b4165932..d9c47781 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -555,6 +555,14 @@ impl IntervalStore {
pub fn is_empty(&self) -> bool {
... | 1 | 33 | 2 |
3a2654f70db994168b8092640db8a0327af625cd | Lucas Van Laer | 2025-04-12T16:57:44 | feat: runs store is_empty | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index f33c9e45..b4165932 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -551,6 +551,10 @@ impl IntervalStore {
pub fn len(&self) -> u64 {
self.0... | 1 | 49 | 34 |
b0771c7021ee4410cdb0a00356df97b55053b074 | Lucas Van Laer | 2025-04-12T16:54:28 | feat: runs store len | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 48b0b5b6..f33c9e45 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -547,6 +547,10 @@ impl IntervalStore {
pub fn intersection_len_array(&self, other... | 1 | 16 | 0 |
1a3a46541f29003e06151e5ffdad4ff51db258c4 | Lucas Van Laer | 2025-04-12T16:51:49 | feat: runs store intersection len | diff --git a/roaring/src/bitmap/store/bitmap_store.rs b/roaring/src/bitmap/store/bitmap_store.rs
index 1a19d909..260a2922 100644
--- a/roaring/src/bitmap/store/bitmap_store.rs
+++ b/roaring/src/bitmap/store/bitmap_store.rs
@@ -4,7 +4,7 @@ use core::fmt::{Display, Formatter};
use core::mem::size_of;
use core::ops::{Bi... | 2 | 200 | 48 |
12aad5fc859a05756212ed9b8d52f77bd1775e84 | Lucas Van Laer | 2025-04-12T11:28:10 | feat: runs store is subset | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 3ccf8759..74600c3a 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -487,6 +487,18 @@ impl IntervalStore {
// TODO: make this better
arr... | 1 | 44 | 0 |
2302e2c904663150756ef351ad53d84af47ff6d2 | Lucas Van Laer | 2025-04-12T10:45:42 | feat: runs store is disjoint | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 03a3aa00..3ccf8759 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -3,6 +3,8 @@ use alloc::vec::Vec;
use core::cmp::Ordering;
use core::ops::RangeInclu... | 1 | 147 | 0 |
5f885430adb03aad35feb7dca685afed4b930f01 | Lucas Van Laer | 2025-04-12T09:08:55 | feat: runs store contains range | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 8fb5f593..03a3aa00 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -437,6 +437,19 @@ impl IntervalStore {
pub fn contains(&self, index: u16) -> bool... | 1 | 45 | 2 |
38e203cce01299587aa06186a5d6be513780df04 | Lucas Van Laer | 2025-04-12T08:45:55 | feat: store run contains | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 76b134a1..8fb5f593 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -433,6 +433,10 @@ impl IntervalStore {
}
self.0.drain(remove_to..);
... | 1 | 25 | 0 |
f4bb02556234268342e4d48a16358d4b4f1afb58 | Lucas Van Laer | 2025-04-11T20:45:44 | feat: run store remove biggest | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index ce3a80fe..76b134a1 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -410,6 +410,29 @@ impl IntervalStore {
}
self.0.drain(..remove_to);
... | 1 | 55 | 0 |
41580e44aed25c7776bc4a7b064790ac7a621f84 | Lucas Van Laer | 2025-04-11T19:15:07 | feat: run store remove smallest | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index b10733a5..ce3a80fe 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -386,6 +386,30 @@ impl IntervalStore {
self.0.drain(todo.drain_range);
... | 1 | 56 | 0 |
f8df21cb70f0fb6046e9405e7ded4d0dd6acedac | Lucas Van Laer | 2025-04-11T18:59:39 | feat: run store remove range | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 1aa01b3b..b10733a5 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -275,6 +275,117 @@ impl IntervalStore {
})
.is_ok()
}
+... | 1 | 248 | 0 |
7dfdd92880383a64ab88b8c945fbd26df4f7ac43 | Lucas Van Laer | 2025-04-11T13:46:58 | feat: run store remove index | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index fde3c97a..1aa01b3b 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -246,6 +246,35 @@ impl IntervalStore {
true
}
}
+
+ pub ... | 1 | 73 | 0 |
71c6679b49f0b7b61c9c100ab336d16389cda158 | Lucas Van Laer | 2025-04-11T13:20:36 | feat: run store push | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
index 345166f5..fde3c97a 100644
--- a/roaring/src/bitmap/store/interval_store.rs
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -229,6 +229,23 @@ impl IntervalStore {
}
}
}
+
+ pub fn ... | 1 | 69 | 0 |
47b7cbfb2fea72091555f6dafc0432c52ebb9350 | Lucas Van Laer | 2025-04-11T13:04:10 | fix: fixes ci failures introduced in a57aff16
This fixes some failing tests and adds some `#[allow(todo]` and
`#[allow(unused]`. | diff --git a/roaring/src/bitmap/arbitrary.rs b/roaring/src/bitmap/arbitrary.rs
index 4746ea53..7a3d2eb3 100644
--- a/roaring/src/bitmap/arbitrary.rs
+++ b/roaring/src/bitmap/arbitrary.rs
@@ -126,6 +126,7 @@ mod test {
}
impl Debug for Store {
+ #[allow(clippy::todo)]
fn fmt(&self, f: &mut Fo... | 12 | 162 | 216 |
a57aff16f2a0838e6aa19992d440334231c921a3 | Lucas Van Laer | 2025-04-10T17:49:36 | feat: insert and insert_range on runs
Implements and tests `insert` and `insert_range` methods on runs. | diff --git a/roaring/src/bitmap/store/interval_store.rs b/roaring/src/bitmap/store/interval_store.rs
new file mode 100644
index 00000000..dadade0c
--- /dev/null
+++ b/roaring/src/bitmap/store/interval_store.rs
@@ -0,0 +1,551 @@
+use core::cmp::Ordering;
+use core::ops::RangeInclusive;
+
+#[derive(PartialEq, Eq, Clone, ... | 2 | 559 | 31 |
9496afe1e6ad93a8875f901c2579761f7acdc5b0 | Clément Renault | 2025-04-05T08:20:47 | Bump version to v0.10.12 | diff --git a/roaring/Cargo.toml b/roaring/Cargo.toml
index adba68f3..4c16b8b6 100644
--- a/roaring/Cargo.toml
+++ b/roaring/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.11"
+version = "0.10.12"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch... | 1 | 1 | 1 |
dba9919cdf7480f6ac0e85c2a7daa37de5885379 | Scott Donnelly | 2025-04-04T17:23:18 | fix: remove todos for fold and rfold - use default implementations instead | diff --git a/roaring/src/treemap/iter.rs b/roaring/src/treemap/iter.rs
index f3a44eaf..186b1eb8 100644
--- a/roaring/src/treemap/iter.rs
+++ b/roaring/src/treemap/iter.rs
@@ -248,16 +248,6 @@ impl Iterator for Iter<'_> {
(size_hint, Some(size_hint))
}
-
- #[inline]
- fn fold<B, F>(self, _init: B, ... | 1 | 0 | 19 |
ce22e1c668ef8063ca777487e13cd0e48f495b62 | Clément Renault | 2025-04-03T09:08:17 | Bump to v0.10.11 | diff --git a/roaring/Cargo.toml b/roaring/Cargo.toml
index d036a8f5..adba68f3 100644
--- a/roaring/Cargo.toml
+++ b/roaring/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.10"
+version = "0.10.11"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch... | 1 | 1 | 1 |
94a0f542f60ccde910e2e3c16b6e364e3a922ee3 | Clément Renault | 2025-04-03T08:46:49 | Improve the code a bit | diff --git a/roaring/src/treemap/iter.rs b/roaring/src/treemap/iter.rs
index f3a44eaf..85256b64 100644
--- a/roaring/src/treemap/iter.rs
+++ b/roaring/src/treemap/iter.rs
@@ -238,9 +238,8 @@ impl Iterator for Iter<'_> {
}
fn size_hint(&self) -> (usize, Option<usize>) {
- let front_size_hint = if let ... | 1 | 2 | 3 |
6d51ba02322e5613cd5f183845765731034d6c68 | Scott Donnelly | 2025-03-26T23:41:22 | refactor: treemap iter switched to dynamic size hint to enable more efficient bitmap skipping in advance_to and advance_back_to | diff --git a/roaring/src/treemap/iter.rs b/roaring/src/treemap/iter.rs
index 1968c1aa..f3a44eaf 100644
--- a/roaring/src/treemap/iter.rs
+++ b/roaring/src/treemap/iter.rs
@@ -1,6 +1,6 @@
use alloc::collections::{btree_map, BTreeMap};
use core::iter;
-use std::iter::Peekable;
+use core::ops::Add;
use super::util;
... | 1 | 109 | 80 |
331c97d6861d39179119a25bd771e9baf18333d9 | Scott Donnelly | 2025-03-21T23:28:46 | Add advance_to and advance_back_to to Treemap Iter | diff --git a/roaring/src/treemap/iter.rs b/roaring/src/treemap/iter.rs
index ed7dc804..1968c1aa 100644
--- a/roaring/src/treemap/iter.rs
+++ b/roaring/src/treemap/iter.rs
@@ -1,5 +1,6 @@
use alloc::collections::{btree_map, BTreeMap};
use core::iter;
+use std::iter::Peekable;
use super::util;
use crate::bitmap::In... | 2 | 468 | 18 |
464972a02a07d07bc31476268d4dc06e7869505a | Kerollmops | 2025-03-24T09:57:03 | Set pub(crate) on some structs | diff --git a/roaring/src/bitmap/cmp.rs b/roaring/src/bitmap/cmp.rs
index 366ff090..370bfb08 100644
--- a/roaring/src/bitmap/cmp.rs
+++ b/roaring/src/bitmap/cmp.rs
@@ -101,7 +101,7 @@ impl RoaringBitmap {
/// Returns the smallest container according to its key
/// or both if the key is the same. It is useful when you ... | 2 | 3 | 3 |
d2ee4d33fabc6fa34b53a28b0978d23d8f961318 | Kerollmops | 2025-03-24T09:50:44 | Clean up imports | diff --git a/roaring/src/bitmap/mod.rs b/roaring/src/bitmap/mod.rs
index 29cd863f..a63ebf24 100644
--- a/roaring/src/bitmap/mod.rs
+++ b/roaring/src/bitmap/mod.rs
@@ -18,7 +18,7 @@ mod ops_with_serialized;
#[cfg(feature = "serde")]
mod serde;
#[cfg(feature = "std")]
-pub mod serialization;
+mod serialization;
use... | 2 | 6 | 7 |
714a0462b6200c1eff8b9fc0708decff71932f49 | Kerollmops | 2025-03-24T09:45:41 | Make clippy happy when no_std is used | diff --git a/roaring/src/bitmap/arbitrary.rs b/roaring/src/bitmap/arbitrary.rs
index 9c322c1a..11de91ff 100644
--- a/roaring/src/bitmap/arbitrary.rs
+++ b/roaring/src/bitmap/arbitrary.rs
@@ -8,8 +8,6 @@ mod test {
use proptest::collection::{vec, SizeRange};
use proptest::prelude::*;
- #[cfg(not(feature =... | 7 | 139 | 136 |
9ce899fe1b25374c5d43227f2039b93a89d936e7 | Kerollmops | 2025-03-24T09:27:09 | Remove useless impl | diff --git a/roaring/src/bitmap/arbitrary.rs b/roaring/src/bitmap/arbitrary.rs
index e71740f8..9c322c1a 100644
--- a/roaring/src/bitmap/arbitrary.rs
+++ b/roaring/src/bitmap/arbitrary.rs
@@ -4,7 +4,7 @@ mod test {
use crate::bitmap::store::{ArrayStore, BitmapStore, Store};
use crate::RoaringBitmap;
use c... | 3 | 5 | 35 |
2012a0747907da7cb1b780edc91f2300e57a5000 | Kerollmops | 2025-03-24T09:22:48 | Make the Container and Iter pub(crate) | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index b6935373..a02a8555 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -1,5 +1,3 @@
-// TODO: remove the line below and document `Container` and `Iter` or make them not pub
-#![allow(unnameable_types)]... | 1 | 2 | 4 |
5286dfa64a6edebcf3da2f3f0084b6f540ff9338 | Scott Donnelly | 2025-03-22T00:10:44 | chore: deny unnameable types by default (store and container excluded and left for a follow-up) | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 2f6e934e..b6935373 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -1,3 +1,5 @@
+// TODO: remove the line below and document `Container` and `Iter` or make them not pub
+#![allow(unnameable_types)]... | 5 | 7 | 1 |
c9400d0a4b40a812b940fdea40de3fd0fb22187f | GZTime | 2025-01-31T12:47:32 | fix(clippy): allow `clippy::doc_overindented_list_items` | diff --git a/roaring/src/lib.rs b/roaring/src/lib.rs
index b44c19c2..90ae9160 100644
--- a/roaring/src/lib.rs
+++ b/roaring/src/lib.rs
@@ -13,6 +13,7 @@
#![warn(unsafe_op_in_unsafe_fn)]
#![warn(variant_size_differences)]
#![allow(unknown_lints)] // For clippy
+#![allow(clippy::doc_overindented_list_items)]
#[cfg(... | 1 | 1 | 0 |
a2c1d79133ebdaa7511628cd8df3e91870c96eea | GZTime | 2025-01-31T12:44:11 | fix(clippy): using `!is_empty` is clearer and more explicit | diff --git a/roaring/src/bitmap/multiops.rs b/roaring/src/bitmap/multiops.rs
index 66a4e085..f6bdec92 100644
--- a/roaring/src/bitmap/multiops.rs
+++ b/roaring/src/bitmap/multiops.rs
@@ -332,7 +332,7 @@ fn try_multi_or_ref<'a, E: 'a>(
// Phase 3: Clean up
let containers: Vec<_> = containers
.into_ite... | 1 | 2 | 2 |
847675e3735369c1dfc591255ac75e7e0c723af1 | GZTime | 2025-01-31T12:31:57 | chore(deps): replace `bincode` with `postcard` | diff --git a/Cargo.toml b/Cargo.toml
index 3256f873..6e43a8ac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,11 +1,10 @@
[workspace]
-members = ["roaring", "benchmarks"]
+members = [ "benchmarks", "roaring" ]
resolver = "2"
[workspace.dependencies]
roaring = { path = "roaring" }
-bincode = "1.3.3"
bytemuck = "... | 4 | 10 | 10 |
625f66e8cc15c37e7ed658ee12e9fb988516a2dc | Clément Renault | 2025-01-08T10:09:58 | Bump version to v0.10.10 | diff --git a/roaring/Cargo.toml b/roaring/Cargo.toml
index 74e8c2cb..746384a7 100644
--- a/roaring/Cargo.toml
+++ b/roaring/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.9"
+version = "0.10.10"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.... | 1 | 1 | 1 |
fce866f4c782e15b9eb6137eeb3ee4ca9cdf095a | Clément Renault | 2025-01-07T14:41:26 | Upgrade incompatible dependencies | diff --git a/Cargo.toml b/Cargo.toml
index c6ee9061..3256f873 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,10 +8,10 @@ roaring = { path = "roaring" }
bincode = "1.3.3"
bytemuck = "1.21.0"
byteorder = "1.5.0"
-criterion = "0.3"
-git2 = { version = "0.19", default-features = false }
+criterion = "0.5"
+git2 = { vers... | 1 | 3 | 3 |
33827058052aae3fceaa6ea13cdb3bff4d35a80d | Clément Renault | 2025-01-07T14:38:27 | Upgrade compatible dependencies | diff --git a/Cargo.toml b/Cargo.toml
index 945fa1c2..c6ee9061 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,16 +6,16 @@ resolver = "2"
roaring = { path = "roaring" }
bincode = "1.3.3"
-bytemuck = "1.16.1"
+bytemuck = "1.21.0"
byteorder = "1.5.0"
criterion = "0.3"
git2 = { version = "0.19", default-features = fa... | 1 | 5 | 5 |
d5dca9a9e75c91e11b53d8f451ab5de6114fd82b | Clément Renault | 2025-01-07T14:54:47 | Make clippy happy | diff --git a/roaring/src/bitmap/iter.rs b/roaring/src/bitmap/iter.rs
index ae8d3e4d..537acc3a 100644
--- a/roaring/src/bitmap/iter.rs
+++ b/roaring/src/bitmap/iter.rs
@@ -732,6 +732,7 @@ impl Extend<u32> for RoaringBitmap {
/// assert!(rb.contains(1508));
/// assert!(!rb.contains(5));
/// ```
+ #[inli... | 3 | 9 | 7 |
1eb31a0855db35b9ef522b76b124cc729a1095f6 | Clément Renault | 2025-01-07T14:48:43 | Replace insert_many by the Extend trait | diff --git a/roaring/src/bitmap/inherent.rs b/roaring/src/bitmap/inherent.rs
index f3644d25..8e1fb803 100644
--- a/roaring/src/bitmap/inherent.rs
+++ b/roaring/src/bitmap/inherent.rs
@@ -66,7 +66,7 @@ impl RoaringBitmap {
///
/// Return the index of the target container.
#[inline]
- fn find_container_... | 2 | 60 | 58 |
245d6041ce86dea4a810e0506d2f9306d34ec241 | Clément Renault | 2025-01-07T14:29:19 | Mark many inherent method inline | diff --git a/roaring/src/bitmap/inherent.rs b/roaring/src/bitmap/inherent.rs
index c20bad42..f3644d25 100644
--- a/roaring/src/bitmap/inherent.rs
+++ b/roaring/src/bitmap/inherent.rs
@@ -65,6 +65,7 @@ impl RoaringBitmap {
/// Creates a new container if it doesn't exist.
///
/// Return the index of the ta... | 1 | 18 | 0 |
fcb7dfbc398f258c18330d433fbed9a3e8a76652 | Clément Renault | 2025-01-07T14:26:25 | Make the insert_many method accept an Iterator | diff --git a/roaring/src/bitmap/inherent.rs b/roaring/src/bitmap/inherent.rs
index 25bfcf04..c20bad42 100644
--- a/roaring/src/bitmap/inherent.rs
+++ b/roaring/src/bitmap/inherent.rs
@@ -80,10 +80,26 @@ impl RoaringBitmap {
///
/// The provided integers values don't have to be in sorted order, but it may be p... | 1 | 20 | 4 |
24a0c64097f3dec5136a2700d2a3a8a50fe1411c | Clément Renault | 2024-12-09T21:50:46 | Introduce the RoaringBitmap::insert_many method | diff --git a/roaring/src/bitmap/inherent.rs b/roaring/src/bitmap/inherent.rs
index 06d293e4..25bfcf04 100644
--- a/roaring/src/bitmap/inherent.rs
+++ b/roaring/src/bitmap/inherent.rs
@@ -61,8 +61,8 @@ impl RoaringBitmap {
container.insert(index)
}
- /// Search for the specific container by the given ... | 1 | 36 | 2 |
6f37958cc1cba9027c5de23229d7f962eba9bc92 | Kerollmops | 2024-12-13T11:07:18 | Bump to v0.10.9 | diff --git a/roaring/Cargo.toml b/roaring/Cargo.toml
index 948ea83e..74e8c2cb 100644
--- a/roaring/Cargo.toml
+++ b/roaring/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.8"
+version = "0.10.9"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.c... | 1 | 1 | 1 |
8e760c975c6baebf0d545aaf4dfe0f677886829c | GZTime | 2024-12-08T13:12:27 | fix(no_std): use `core::slice` in `bitmap_store.rs` | diff --git a/roaring/src/bitmap/store/bitmap_store.rs b/roaring/src/bitmap/store/bitmap_store.rs
index b4d88b76..cf4649c1 100644
--- a/roaring/src/bitmap/store/bitmap_store.rs
+++ b/roaring/src/bitmap/store/bitmap_store.rs
@@ -61,7 +61,7 @@ impl BitmapStore {
// Safety: It's safe to reinterpret u64s as u8s... | 1 | 1 | 1 |
9b0cb8f6693c123bd93b65ae30b19ba1bdeaba21 | Kerollmops | 2024-12-06T11:22:35 | Bump roaring to v1.10.8 | diff --git a/roaring/Cargo.toml b/roaring/Cargo.toml
index 60ee25d8..948ea83e 100644
--- a/roaring/Cargo.toml
+++ b/roaring/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.7"
+version = "0.10.8"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.c... | 1 | 1 | 1 |
a10a29cace8bed8a27b77f3f8d4875f586be30f8 | lemolatoon | 2024-12-03T07:03:57 | Add naive fallback for non-multiple 8 offset of `from_lsb0_bytes` | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index 3ac12638..de7c6325 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -53,7 +53,6 @@ impl RoaringBitmap {
///
/// - `offset: u32` - The starting position in the bitmap where ... | 1 | 46 | 7 |
a44cc0bdb25ac7f0ba8ee3f7a7aa188e0aaa2a6c | lemolatoon | 2024-11-01T04:59:39 | Fix cargo clippy warning | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index 8dabf8d1..3ac12638 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -382,8 +382,8 @@ mod test {
const CONTAINER_OFFSET: u32 = u64::BITS * BITMAP_LENGTH as u32;
cons... | 1 | 3 | 3 |
1b42145592b5d51f1bf6cb68c27562a728d4e6b2 | lemolatoon | 2024-10-01T04:38:18 | Apply cargo fmt | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 40ef8f61..2f6e934e 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -31,12 +31,9 @@ impl Container {
pub fn full(key: u16) -> Container {
Container { key, store: Store::full() }
}... | 3 | 11 | 15 |
2f8d368fb5927ae800c4354ef3240375a0f39f72 | Zachary Dremann | 2024-09-07T14:55:40 | add special case for creating a full bitmap container
we can setting an initial value in that case | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index f38f89f6..b618866a 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -413,11 +413,17 @@ mod test {
assert_eq!(rb.min(), Some(CONTAINER_OFFSET + 8));
- ... | 2 | 39 | 19 |
120e9aa6b7998e0972fb6ec6c61b0a0b053c6475 | Zachary Dremann | 2024-09-06T15:06:14 | Speed up from_bitmap_bytes, and use less unsafe
* Directly create an array/bitmap store based on the count of bits
* Use u64 words to count bits and enumerate bits
* Store in little endian, then just fixup any touched words
* Only use unsafe to reinterpret a whole bitmap container as bytes, everything
else is safe
*... | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 7c9c5d76..40ef8f61 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -31,6 +31,13 @@ impl Container {
pub fn full(key: u16) -> Container {
Container { key, store: Store::full() }
}... | 5 | 166 | 123 |
8cfab5e6d1b2364bfc009ab39f4a4783b4e61812 | lemolatoon | 2024-09-05T22:38:47 | Update description of bit order in from_bitmap_bytes | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index 3065ed67..7fb15f3a 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -55,13 +55,14 @@ impl RoaringBitmap {
/// - `offset: u32` - The starting position in the bitmap where the byt... | 1 | 3 | 2 |
fc5b1331b445d1a22713227dc497447d6dc8644e | lemolatoon | 2024-09-05T22:24:12 | Handle big endian system in from_bitmap_bytes | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index c0a8caa5..3065ed67 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -99,6 +99,56 @@ impl RoaringBitmap {
fn next_multiple_of_usize(n: usize, multiple: usize) -> usize {
... | 1 | 57 | 20 |
af7723235eda7d0d8c558b0106bd87ff42c72eeb | lemolatoon | 2024-08-21T00:27:20 | Add benchmark for from_bitmap_bytes | diff --git a/benchmarks/benches/lib.rs b/benchmarks/benches/lib.rs
index 34af68ba..0e2eb02a 100644
--- a/benchmarks/benches/lib.rs
+++ b/benchmarks/benches/lib.rs
@@ -149,6 +149,27 @@ fn creation(c: &mut Criterion) {
group.throughput(Throughput::Elements(dataset.bitmaps.iter().map(|rb| rb.len()).sum()));
+... | 1 | 21 | 0 |
1983865907853c2997af65f6ef1193b3e5213a24 | lemolatoon | 2024-08-21T00:11:40 | Impl RoaringBitmap::from_bitmap_bytes | diff --git a/roaring/src/bitmap/serialization.rs b/roaring/src/bitmap/serialization.rs
index f04f5039..c0a8caa5 100644
--- a/roaring/src/bitmap/serialization.rs
+++ b/roaring/src/bitmap/serialization.rs
@@ -7,6 +7,7 @@ use std::io;
use crate::bitmap::container::{Container, ARRAY_LIMIT};
use crate::bitmap::store::{A... | 1 | 176 | 1 |
50763bf4fd6238632d7f8a965e6e7a4d0efdbace | Clément Renault | 2024-11-27T09:07:23 | Bump version to v0.10.7 | diff --git a/roaring/Cargo.toml b/roaring/Cargo.toml
index 3c81d047..60ee25d8 100644
--- a/roaring/Cargo.toml
+++ b/roaring/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.6"
+version = "0.10.7"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.c... | 1 | 1 | 2 |
50eda41182dc3d11666cc720622ff4ad90a0798c | Zachary Dremann | 2024-11-02T00:53:58 | implement range based iteration
Implement `bitmap.iter_range()` and `bitmap.into_iter_range()`, based on
`advance_to()` and `advance_back_to()`.
Co-authored-by: Matthew Herzl <matthew@herzl.email> | diff --git a/roaring/src/bitmap/inherent.rs b/roaring/src/bitmap/inherent.rs
index b6791a37..06d293e4 100644
--- a/roaring/src/bitmap/inherent.rs
+++ b/roaring/src/bitmap/inherent.rs
@@ -94,8 +94,8 @@ impl RoaringBitmap {
R: RangeBounds<u32>,
{
let (start, end) = match util::convert_range_to_incl... | 4 | 282 | 38 |
a27587ff19c2ae2c2603416a69ff4fdcccc89806 | Clément Renault | 2024-11-25T09:44:04 | Add more documentation to the ArrayStore capacity method | diff --git a/roaring/src/bitmap/store/array_store/mod.rs b/roaring/src/bitmap/store/array_store/mod.rs
index e1b2b9af..b13f04cc 100644
--- a/roaring/src/bitmap/store/array_store/mod.rs
+++ b/roaring/src/bitmap/store/array_store/mod.rs
@@ -30,6 +30,7 @@ impl ArrayStore {
ArrayStore { vec: Vec::with_capacity(cap... | 1 | 1 | 0 |
2d1a330a028fff7836fb4ab4d6253c7c00df4545 | Clément Renault | 2024-11-25T09:20:15 | Make sure not to overflow values in the the Statistics | diff --git a/roaring/src/bitmap/statistics.rs b/roaring/src/bitmap/statistics.rs
index e39b904a..d3aea382 100644
--- a/roaring/src/bitmap/statistics.rs
+++ b/roaring/src/bitmap/statistics.rs
@@ -22,7 +22,7 @@ pub struct Statistics {
/// Number of values stored in run containers
pub n_values_run_containers: u3... | 1 | 2 | 2 |
f8e5aeb276d34d64f08393efebe0198ac6d6b838 | Clément Renault | 2024-11-25T09:18:41 | Make the Statistics struct non exhaustive | diff --git a/roaring/src/bitmap/statistics.rs b/roaring/src/bitmap/statistics.rs
index 1ef928aa..e39b904a 100644
--- a/roaring/src/bitmap/statistics.rs
+++ b/roaring/src/bitmap/statistics.rs
@@ -7,6 +7,7 @@ use super::store::Store;
/// Detailed statistics on the composition of a bitmap.
#[derive(Clone, Copy, Partia... | 1 | 1 | 0 |
f3e289dfc9cbe6788f505733dbc7e542816df130 | Clément Renault | 2024-10-08T09:45:33 | Introduce the Statistics data structure | diff --git a/roaring/src/bitmap/mod.rs b/roaring/src/bitmap/mod.rs
index ed5567d5..b5e7e972 100644
--- a/roaring/src/bitmap/mod.rs
+++ b/roaring/src/bitmap/mod.rs
@@ -3,6 +3,7 @@ mod container;
mod fmt;
mod multiops;
mod proptests;
+mod statistics;
mod store;
mod util;
@@ -22,6 +23,7 @@ pub(crate) mod serializat... | 4 | 116 | 0 |
1f1c22296235bc49b9f4759c6322c7f9dd9b7b13 | Clément Renault | 2024-09-23T14:52:15 | Inline the RoaringBitmap max method | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 86cc019c..7c9c5d76 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -161,6 +161,7 @@ impl Container {
self.store.min()
}
+ #[inline]
pub fn max(&self) -> Option<u16> {
... | 5 | 5 | 0 |
e972ff4784d07f8806141a7d878cfb3921363927 | Clément Renault | 2024-09-16T13:15:59 | Inline most the insertion functions | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 8c1ac124..86cc019c 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -42,6 +42,7 @@ impl Container {
self.store.is_empty()
}
+ #[inline]
pub fn insert(&mut self, index: u16) -... | 5 | 5 | 0 |
0d72193efef4709a9b67bfea1ae9142ab998ad97 | Clément Renault | 2024-09-02T16:09:32 | Implement Clone on the roaring bitmap | diff --git a/roaring/src/bitmap/iter.rs b/roaring/src/bitmap/iter.rs
index fc9ff69b..5568511e 100644
--- a/roaring/src/bitmap/iter.rs
+++ b/roaring/src/bitmap/iter.rs
@@ -18,6 +18,7 @@ pub struct Iter<'a> {
}
/// An iterator for `RoaringBitmap`.
+#[derive(Clone)]
pub struct IntoIter {
front: Option<container:... | 1 | 1 | 0 |
35266270f7153461cfc8450a9440bd5a53e1b64d | Clément Renault | 2024-09-02T15:50:26 | Implement Clone on the bitmap::Iter type | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index eebdfe6a..8c1ac124 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -17,6 +17,7 @@ pub struct Container {
pub store: Store,
}
+#[derive(Clone)]
pub struct Iter<'a> {
pub key: u16,
... | 4 | 4 | 0 |
c3ef874388a0d48b24a443dd6d2cc9c31aa0ead9 | Clément Renault | 2024-11-12T10:48:37 | Make clippy happy | diff --git a/benchmarks/benches/lib.rs b/benchmarks/benches/lib.rs
index b5c92882..34af68ba 100644
--- a/benchmarks/benches/lib.rs
+++ b/benchmarks/benches/lib.rs
@@ -26,7 +26,7 @@ fn pairwise_binary_op_matrix(
mut op_assign_ref: impl FnMut(&mut RoaringBitmap, &RoaringBitmap),
op_len: impl Fn(&RoaringBitmap, ... | 4 | 10 | 11 |
294ef6bf29e11b8d65e48f9436520aaffdb0fb01 | Zachary Dremann | 2024-11-02T00:53:45 | feat: implement advance_to and advance_back_to for Iter
Implement the ability to efficiently skip ahead to a particular value.
Co-authored-by: Christian Schjølberg <cschjolb@gmail.com>
Co-authored-by: Matthew Herzl <matthew@herzl.email> | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 9b238866..eebdfe6a 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -325,6 +325,16 @@ impl DoubleEndedIterator for Iter<'_> {
impl ExactSizeIterator for Iter<'_> {}
+impl Iter<'_> {
+ pub(cr... | 5 | 519 | 1 |
820b270d39a32e6eb52bd80241e6d9b08d480cef | Zachary Dremann | 2024-10-16T02:56:12 | lazily compute iterator len, add interator overrides
This means the price of visting every container is only paid when needed: e.g.
when calling `.collect()`
This adds more efficent overrides for `count`, `nth` and `nth_back`, and
implements `FusedIterator` | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 09860b88..9b238866 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -300,6 +300,21 @@ impl Iterator for Iter<'_> {
fn next(&mut self) -> Option<u32> {
self.inner.next().map(|i| util::j... | 5 | 370 | 46 |
b39a3c11f5f4db4c84c253f3082338aa62fc7f0d | Zachary Dremann | 2024-10-01T03:38:48 | use u16 keys for bitmap store iterator | diff --git a/roaring/src/bitmap/store/bitmap_store.rs b/roaring/src/bitmap/store/bitmap_store.rs
index a60f3a1a..ceaeb5c2 100644
--- a/roaring/src/bitmap/store/bitmap_store.rs
+++ b/roaring/src/bitmap/store/bitmap_store.rs
@@ -403,9 +403,9 @@ impl Display for Error {
impl std::error::Error for Error {}
pub struct B... | 1 | 10 | 9 |
385eff73d63d67e8ccc6d08f28a2c00c064fd5a5 | Zachary Dremann | 2024-10-01T01:10:26 | Speed up bitmap store iterator | diff --git a/roaring/src/bitmap/store/bitmap_store.rs b/roaring/src/bitmap/store/bitmap_store.rs
index f349a2aa..a60f3a1a 100644
--- a/roaring/src/bitmap/store/bitmap_store.rs
+++ b/roaring/src/bitmap/store/bitmap_store.rs
@@ -1,5 +1,4 @@
use core::borrow::Borrow;
-use core::cmp::Ordering;
use core::fmt::{Display, Fo... | 1 | 19 | 16 |
c7c3cd5f055b19306d69715b16dd41305035f8cd | Zachary Dremann | 2024-10-01T03:19:59 | do not expose a "datasets" benchmark binary
the datasets.rs file is only used as a module in the lib benchmarks | diff --git a/benchmarks/benches/datasets.rs b/benchmarks/benches/datasets/mod.rs
similarity index 100%
rename from benchmarks/benches/datasets.rs
rename to benchmarks/benches/datasets/mod.rs | 1 | 0 | 0 |
55a0b18c71333e162654eeb2a80d24ee863d2c5a | Zachary Dremann | 2024-10-11T00:45:13 | Also fix clippy warnings on nightly | diff --git a/roaring/src/bitmap/container.rs b/roaring/src/bitmap/container.rs
index 3ab1e5ad..09860b88 100644
--- a/roaring/src/bitmap/container.rs
+++ b/roaring/src/bitmap/container.rs
@@ -295,7 +295,7 @@ impl IntoIterator for Container {
}
}
-impl<'a> Iterator for Iter<'a> {
+impl Iterator for Iter<'_> {
... | 3 | 5 | 5 |
841004b68cf7013a678fff8784a6fd3dd12f096a | Zachary Dremann | 2024-10-10T01:04:22 | Fix warnings when testing with nightly
Keep testing arbitrary implementations as pub(crate). This avoids warnings
about undocumented public APIs | diff --git a/roaring/src/bitmap/arbitrary.rs b/roaring/src/bitmap/arbitrary.rs
index a8ca25be..6bb8b356 100644
--- a/roaring/src/bitmap/arbitrary.rs
+++ b/roaring/src/bitmap/arbitrary.rs
@@ -189,7 +189,7 @@ mod test {
impl RoaringBitmap {
prop_compose! {
- pub fn arbitrary()(bitmap in (0usize... | 2 | 2 | 2 |
4e344a8f144331ef885810b88d016d6f4f21787c | GZTime | 2024-10-01T06:21:15 | fix(typos): fix some typos with `typos` | diff --git a/roaring/src/bitmap/store/array_store/visitor.rs b/roaring/src/bitmap/store/array_store/visitor.rs
index 51dda9b9..d7293d7b 100644
--- a/roaring/src/bitmap/store/array_store/visitor.rs
+++ b/roaring/src/bitmap/store/array_store/visitor.rs
@@ -32,7 +32,7 @@ impl VecWriter {
pub fn into_inner(self) -> ... | 2 | 5 | 5 |
04b82fcfa4a98bf6a6cabfe6965b6e9c687f4c6f | Tamo | 2024-07-02T13:48:16 | prepare for release 2 | diff --git a/Cargo.toml b/Cargo.toml
index 3e2c0886..4baaa797 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.5"
+version = "0.10.6"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.com>"]
description = "A better c... | 1 | 1 | 1 |
d1057046c5d3e510294c5b710d9f300ace7b064b | Tamo | 2024-07-02T13:14:31 | prepare for release | diff --git a/Cargo.toml b/Cargo.toml
index 482c7f9b..3e2c0886 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.4"
+version = "0.10.5"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.com>"]
description = "A better c... | 1 | 1 | 1 |
5178cd626c91398dd49db1d55c60354adbc430bd | Tamo | 2024-07-02T13:11:10 | update dependencies | diff --git a/Cargo.toml b/Cargo.toml
index ace636e9..482c7f9b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,9 +16,9 @@ edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
-bytemuck = { version = "1.14.3", optional = true }
+bytemuck = { version = "1.16.1", optional = true }
byteorder = { version = "1.5... | 1 | 4 | 4 |
808c8eac3afee17643d4a65a1c2dc8c716a2fbb3 | Clément Renault | 2024-06-08T01:53:49 | Bump roaring to v0.10.5 | diff --git a/Cargo.toml b/Cargo.toml
index ace636e9..16a2c7ce 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "roaring"
-version = "0.10.4"
+version = "0.10.5"
rust-version = "1.65.0"
authors = ["Wim Looman <wim@nemo157.com>", "Kerollmops <kero@meilisearch.com>"]
description = "A better c... | 1 | 1 | 1 |
457b2c91c125c4319730776203b81c6867300365 | Clément Renault | 2024-06-07T22:12:24 | Remove useless std feature gate
Co-authored-by: Tamo <tamo@meilisearch.com> | diff --git a/src/bitmap/ops_with_serialized.rs b/src/bitmap/ops_with_serialized.rs
index f19ba53c..e3808803 100644
--- a/src/bitmap/ops_with_serialized.rs
+++ b/src/bitmap/ops_with_serialized.rs
@@ -278,7 +278,6 @@ impl RoaringBitmap {
}
#[cfg(test)]
-#[cfg(feature = "std")] // We need this to serialize bitmaps
mo... | 1 | 0 | 1 |
e417314f0774a44bbb4bc2578a3bf457413134ed | Clément Renault | 2024-06-06T14:49:13 | Always use container offsets when available | diff --git a/src/bitmap/ops_with_serialized.rs b/src/bitmap/ops_with_serialized.rs
index 6711b1b0..f19ba53c 100644
--- a/src/bitmap/ops_with_serialized.rs
+++ b/src/bitmap/ops_with_serialized.rs
@@ -104,19 +104,14 @@ impl RoaringBitmap {
let mut offsets = vec![0; size];
reader.read_exact(cast_... | 1 | 8 | 13 |
88b848b84cf7c8cc8d2ea02dfff77b5a54d822ec | Clément Renault | 2024-06-06T14:37:41 | Use containers offsets when available | diff --git a/src/bitmap/ops_with_serialized.rs b/src/bitmap/ops_with_serialized.rs
index e9404e9d..6711b1b0 100644
--- a/src/bitmap/ops_with_serialized.rs
+++ b/src/bitmap/ops_with_serialized.rs
@@ -8,7 +8,7 @@ use std::ops::RangeInclusive;
use crate::bitmap::container::Container;
use crate::bitmap::serialization::... | 1 | 97 | 8 |
b92f110c7363901b2bc170585c4fc7e98538c79a | Clément Renault | 2024-06-06T14:09:03 | Deserialize the description info at the beginning | diff --git a/src/bitmap/ops_with_serialized.rs b/src/bitmap/ops_with_serialized.rs
index cb27dd45..e9404e9d 100644
--- a/src/bitmap/ops_with_serialized.rs
+++ b/src/bitmap/ops_with_serialized.rs
@@ -8,8 +8,7 @@ use std::ops::RangeInclusive;
use crate::bitmap::container::Container;
use crate::bitmap::serialization::... | 1 | 10 | 10 |
88ceb7de4d76c4f47bb0a14a13506a74db09c22e | Clément Renault | 2024-06-06T13:44:12 | Improve the documentation of the function | diff --git a/src/bitmap/ops_with_serialized.rs b/src/bitmap/ops_with_serialized.rs
index 1a174598..cb27dd45 100644
--- a/src/bitmap/ops_with_serialized.rs
+++ b/src/bitmap/ops_with_serialized.rs
@@ -17,24 +17,31 @@ use super::container::ARRAY_LIMIT;
use super::store::{ArrayStore, BitmapStore, Store, BITMAP_LENGTH};
... | 1 | 14 | 7 |
7b4df74555ffe25061a0670aac807722c0bfbf2c | Clément Renault | 2024-06-06T13:25:32 | Skip offsets instead of copying and dropping them | diff --git a/src/bitmap/ops_with_serialized.rs b/src/bitmap/ops_with_serialized.rs
index c2811f48..1a174598 100644
--- a/src/bitmap/ops_with_serialized.rs
+++ b/src/bitmap/ops_with_serialized.rs
@@ -92,9 +92,8 @@ impl RoaringBitmap {
let mut description_bytes = &description_bytes[..];
if has_offsets... | 1 | 6 | 7 |
add2002f5c3ecd3b2419d0d0a8c2400b3d340474 | Clément Renault | 2024-06-06T02:09:19 | Avoid allocating too much containers | diff --git a/src/bitmap/ops_with_serialized.rs b/src/bitmap/ops_with_serialized.rs
index 9d33c560..c2811f48 100644
--- a/src/bitmap/ops_with_serialized.rs
+++ b/src/bitmap/ops_with_serialized.rs
@@ -97,7 +97,7 @@ impl RoaringBitmap {
drop(offsets); // We could use these offsets but we are lazy
}
... | 1 | 1 | 1 |
4466ae0104ed44a8cf41d187d9359483fe190701 | Clément Renault | 2024-06-05T19:01:13 | Fix building with no-std | diff --git a/src/bitmap/mod.rs b/src/bitmap/mod.rs
index 1d481afa..ed5567d5 100644
--- a/src/bitmap/mod.rs
+++ b/src/bitmap/mod.rs
@@ -12,6 +12,7 @@ mod cmp;
mod inherent;
mod iter;
mod ops;
+#[cfg(feature = "std")]
mod ops_with_serialized;
#[cfg(feature = "serde")]
mod serde;
diff --git a/src/bitmap/ops_with_ser... | 2 | 3 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.