Skip to content

Conversation

@gwy15
Copy link

@gwy15 gwy15 commented Oct 23, 2025

Hello,

I noticed that HLL and HLL+ implements Clone using derive. Default compiler implementation requires that H implements Clone for HyperLogLogPF<H, B> and HyperLogLogPlus<H, B>. This is unnecessary since only hashes are used and type H is merely used as type check.

This PR lifts the Clone constraint on type H by implement Clone mannually rather than using derive.

It is useful when working with types like HyperLogLogPF<str>.

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