Skip to content

Conversation

@felixbarny
Copy link
Member

Part of #132566

@felixbarny felixbarny requested a review from a team as a code owner August 20, 2025 14:07
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.2.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Aug 20, 2025
@elasticsearchmachine elasticsearchmachine added Team:StorageEngine and removed needs:triage Requires assignment of a team area label labels Aug 20, 2025
@elasticsearchmachine
Copy link
Collaborator

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

*/
public class BufferedMurmur3Hasher extends Murmur3Hasher {

public static final int DEFAULT_BUFFER_SIZE = 32 * 4; // 32 characters, each character may take up to 4 bytes in UTF-8
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe 128 * 4 to play it safe?

Copy link
Member Author

Choose a reason for hiding this comment

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

As this is the default size, I'd like to be a bit more conservative with memory usage. This should probably also be enough for the OTLP endpoint as this is used primarily for attribute names. The attribute values are already in utf8-encoded byte arrays and directly use the update method.

@felixbarny
Copy link
Member Author

I've made another change to reduce the number of flushes. This should yield more throughput in the hasher as the amount of data it can hash at once is larger.

@felixbarny felixbarny merged commit 11ac7de into elastic:main Aug 22, 2025
33 checks passed
@felixbarny felixbarny deleted the buffered-murmur3 branch August 22, 2025 12:59
pabloem pushed a commit to pabloem/elasticsearch that referenced this pull request Aug 22, 2025
@felixbarny felixbarny self-assigned this Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/TSDB You know, for Metrics Team:StorageEngine v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants