Renkai opened a new pull request, #174: URL: https://github.com/apache/datasketches-rust/pull/174
This is a follow-up of #136, addressing part of #137. Add `estimated_size()` to the remaining sketches that don't report their memory footprint yet: - `CountMinSketch`: `size_of::<Self>()` plus the capacity of the `counts` and `hash_seeds` backing vectors - `FrequentItemsSketch`: `size_of::<Self>()` plus the heap allocations of the internal `ReversePurgeItemHashMap` (keys/values/states arrays) The implementation follows the pattern established in #136: heap usage is measured by allocation capacity, and nested storage types expose their own `estimated_size()` helper. Tests: added one case per sketch (`countmin_test`, `frequencies_test`). Verified with `cargo x check`, `cargo x test`, and `cargo x lint`. -- 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]
