tisonkun opened a new pull request, #358: URL: https://github.com/apache/datasketches-rust/pull/358
## Summary `XorFilter` previously matched on the 8-, 16-, and 32-bit `Fingerprints` variants across construction, membership queries, width inspection, serialization, and deserialization, and passed per-width narrowing closures into `assign_fingerprints`. Encapsulate all width-polymorphic payload operations inside `Fingerprints` so `XorFilter` handles only seeding, hypergraph peeling, and the 24-byte header: - Move peel-stack back-substitution into `Fingerprints::assign`, sharing the slot-solving loop across `u8`, `u16`, and `u32` without a `Fn(u64) -> T` closure parameter or `BitXor` trait plumbing. - Move membership lookup (`#[inline(always)]` `Fingerprints::contains`), width inspection (`Fingerprints::filter_type`), and little-endian payload encoding/decoding (`Fingerprints::serialize` and `Fingerprints::deserialize`) onto `Fingerprints`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
