streaming_algorithms icon indicating copy to clipboard operation
streaming_algorithms copied to clipboard

Added mem-dbg as optional feature

Open LucaCappelletti94 opened this issue 1 year ago • 4 comments
trafficstars

Mem-dbg is a crate that allows to compute the size of a struct. I have added the derives through the crate as an optional feature, so as to use it to compare this implementation with others easily.

Cheers!

LucaCappelletti94 avatar Aug 08 '24 09:08 LucaCappelletti94

FYI, the errors are caused by the CI configuration being old. Consider updating it.

LucaCappelletti94 avatar Aug 08 '24 09:08 LucaCappelletti94

Thanks for this! Let me know when done and will merge despite the outdated CI.

alecmocatta avatar Aug 15 '24 13:08 alecmocatta

Hi @alecmocatta, sure - I am running some benchmarks so I may add some other small edits.

LucaCappelletti94 avatar Aug 15 '24 13:08 LucaCappelletti94

Why are you checking whether the estimates are three-sorted? I see that you run a binary search but that requires the estimates to be completely sorted, and I recently discovered that the estimates provided from the HLL++ paper are not sorted (they nearly are). I will be providing a fix for that shortly.

https://github.com/alecmocatta/streaming_algorithms/blob/99522db25ab4f7a7ba91c793b7568cc1c62afa56/src/distinct/consts.rs#L33-L45

LucaCappelletti94 avatar Aug 15 '24 13:08 LucaCappelletti94