HdrHistogram_rust
HdrHistogram_rust copied to clipboard
More flexible subtraction logic
There are two reasonable things to do when subtracting a count that exceeds the minuend count: saturate at 0, or error. It would be nice to let the user do both.
See https://github.com/jonhoo/hdrsample/pull/34/files#diff-b4aea3e418ccdb71239b96952d9cddb6R558 for more context.
See especially https://github.com/jonhoo/hdrsample/pull/34#discussion_r106214179