These are chat archives for HdrHistogram/HdrHistogram

Mar 2016
Marshall Pierce
Mar 05 2016 21:56

I'm reading through the Java impl and there are a few things I don't understand about AbstractHistogram#init:

  • why is largestValueWithSingleUnitResolution multiplied by 2?
  • in getLengthForNumberOfBuckets (used to calculate counts array length), why is it (numberOfBuckets + 1) * (subBucketCount / 2)? The numBuckets + 1 and the subBucketCount / 2 both seem odd to me.

I've got other questions about how the counts array index is calculated upon insertion, but maybe that will fall into place if I understand the calculations above.