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

[chore][processor/deltatocumulative] Optimize exponential histogram m… #37010

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lahsivjar
Copy link
Member

Description

Simplifies the merge of exponential histogram a bit and also reduces allocations.

Link to tracking issue

N/A

Testing

N/A

Documentation

N/A

@@ -26,10 +26,10 @@ func Merge(arel, brel Buckets) {
size := up - lo

counts := pcommon.NewUInt64Slice()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[For reviewers] There is also some opportunity to reduce allocations a bit more if arel is already at the required capacity and the lower bound of the final result is the arel's lower bound but I haven't done that yet since that might require some discussion over readability vs performance.

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

Successfully merging this pull request may close these issues.

3 participants