Skip to content

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Aug 29, 2025

If the group is constant, we can compute the sum in a tight loop and update the group's value only once.

@dnhatn dnhatn force-pushed the constant-lossy-sum branch from d597308 to d692ca6 Compare August 29, 2025 05:02
@dnhatn dnhatn added :StorageEngine/TSDB You know, for Metrics >non-issue labels Aug 29, 2025
@dnhatn dnhatn requested a review from martijnvg August 29, 2025 06:05
@dnhatn dnhatn marked this pull request as ready for review August 29, 2025 06:05
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@dnhatn dnhatn requested a review from kkrik-es August 29, 2025 06:12
Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

Nice 👍

@dnhatn dnhatn merged commit d3184ca into elastic:main Aug 29, 2025
33 checks passed
@dnhatn dnhatn deleted the constant-lossy-sum branch August 29, 2025 06:44
@dnhatn
Copy link
Member Author

dnhatn commented Aug 29, 2025

Thanks Martijn!

JeremyDahlgren pushed a commit to JeremyDahlgren/elasticsearch that referenced this pull request Aug 29, 2025
If the group is constant, we can compute the sum in a tight loop 
and update the group's value only once.
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