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

Quantile: Add support for 32-bit bins #195

Conversation

GeorgeHahn
Copy link
Contributor

@GeorgeHahn GeorgeHahn commented Nov 10, 2023

What does this PR do?

This change makes sketches generic over bin size and introduces a set of interfaces for interacting with them.

The generic boundary is placed below the Agent sketch, which is effectively a buffer. This keeps interface overhead low. Buffering is enabled for Agent.CountBuf for the same reason. This results in a performance improvement across the board but the main goal there was to avoid a regression from interface overhead.

This change is sibling to: DataDog/datadog-agent#20770

Motivation

This nets us a very significant performance win in datadog-agent's distribution handling.

@GeorgeHahn GeorgeHahn force-pushed the single-machine-performance/generic-bins branch from a99cb94 to f121af5 Compare November 16, 2023 19:56
@GeorgeHahn GeorgeHahn changed the title Single machine performance/generic bins Quantile: Add support for 32-bit bins Nov 16, 2023
@GeorgeHahn GeorgeHahn closed this Jun 12, 2024
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

Successfully merging this pull request may close these issues.

1 participant