histogram icon indicating copy to clipboard operation
histogram copied to clipboard

Implement over-allocation for histograms with growing axes

Open HDembinski opened this issue 4 years ago • 1 comments

Histograms with a growing axes should allocate more space than needed, similar to vector's push_back. This requires adding an extra field on an axis to query the spare capacity. A storage is then only resized if the spare capacity is exceeded.

HDembinski avatar Apr 30 '20 17:04 HDembinski

We then need a reserve() on the axis and shrink_to_fit() to the histogram.

HDembinski avatar Apr 30 '20 17:04 HDembinski