Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement over-allocation for histograms with growing axes #278

Open
HDembinski opened this issue Apr 30, 2020 · 1 comment
Open

Implement over-allocation for histograms with growing axes #278

HDembinski opened this issue Apr 30, 2020 · 1 comment

Comments

@HDembinski
Copy link
Collaborator

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
Copy link
Collaborator Author

HDembinski commented Apr 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant