These are chat archives for HdrHistogram/HdrHistogram

28th
Jul 2015
Alec
@ahothan
Jul 28 2015 05:05
@mikeb01 : in the linear iterator (same for the log iterator) is that really a ||, looks like it should be a && instead?
https://github.com/HdrHistogram/HdrHistogram_c/blob/master/src/hdr_histogram.c#L929
if (has_next(iter) ||
peek_next_value_from_index(iter) > linear->next_value_reporting_level_lowest_equivalent)
Michael Barker
@mikeb01
Jul 28 2015 06:50
@ahothan From memory, a linear or logarithmic value can span multiple buckets, the || condition allows it to iterate "past" the end of the counts array to complete the iteration of the values.
There are unit tests that cover this which were ported from the Java implementation. You can muck around with the code and see how they behave. If you do a build the binaries will be in the test directory.
They can be run manually or using ctest.
Michael Barker
@mikeb01
Jul 28 2015 07:05
I don't think that there is any specific documentation for the binary format other than what is in the Java and C code.