google / google/zetasketch

Expose HyperLogLogPlusPlus#add(byte[], int offset, int size)

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
169
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Some callers can have binary representations that look like: `byte[], int offset, int size`.

The only current access pattern for bytes is `HyperLogLogPlusPlus#add(byte[] bytes)`, which forces such callers to copy bytes. This copy can be avoided because `HashFunction` exposes `HashFunction#hashBytes(byte[] input, int off, int len)`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.