Skip to content

feat: support cpcsketch serde#84

Open
tisonkun wants to merge 13 commits intomainfrom
compression
Open

feat: support cpcsketch serde#84
tisonkun wants to merge 13 commits intomainfrom
compression

Conversation

@tisonkun
Copy link
Member

@tisonkun tisonkun commented Feb 4, 2026

This closes #37

@tisonkun tisonkun marked this pull request as draft February 4, 2026 09:53
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
@tisonkun tisonkun marked this pull request as ready for review February 4, 2026 13:05
@tisonkun
Copy link
Member Author

tisonkun commented Feb 4, 2026

cc @PsiACE @Xuanwo @ZENOTME

@tisonkun tisonkun requested review from leerho and notfilippo February 4, 2026 13:08
/// Computes and checks the 16-bit seed hash from the given long seed.
///
/// The seed hash may not be zero in order to maintain compatibility with older serialized
/// versions that did not have this concept.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean that we should check the return value to prevent 0?

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose so.

cc @leerho I can't see similar requiremeny based on barely the Rust code. Could you provide more context why 0 is not allowed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

BTW this comment is copied from computeSeedHash's Java version.

Signed-off-by: tison <[email protected]>
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.

Implement CpcSketch

2 participants