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

Improve memory usage of StepBucketHistogram #4954

Open
lenin-jaganathan opened this issue Apr 9, 2024 · 0 comments · May be fixed by #4955
Open

Improve memory usage of StepBucketHistogram #4954

lenin-jaganathan opened this issue Apr 9, 2024 · 0 comments · May be fixed by #4955

Comments

@lenin-jaganathan
Copy link
Contributor

While configuring Histograms the expectation is that 16 bytes would be used per bucket (8 bytes - for bucket bound, 8 bytes - for a count of values at a bound). But it seems using StepBucketHistogram (also TimeWindowFixedBoundaryHistogram) uses 8 additional bytes in addition to the required bytes. This is because these implementations seem to hold a local copy of buckets which costs for additional memory footprint.

Expected Behaviour:
Histogram only uses (2 * 8) bytes per bucket.

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

Successfully merging a pull request may close this issue.

1 participant