Skip to content

Conversation

@worryg0d
Copy link
Contributor

No description provided.

@worryg0d worryg0d marked this pull request as ready for review October 23, 2025 07:35
@worryg0d worryg0d marked this pull request as draft October 23, 2025 10:50
@worryg0d worryg0d marked this pull request as ready for review October 24, 2025 07:26
@Override
public String getHash(final InputStream is) throws Exception {
try (StreamingXXHash64 xxHash64 = XXHashFactory.fastestJavaInstance().newStreamingHash64(0)) {
byte[] byteArray = new byte[1024];
Copy link
Collaborator

Choose a reason for hiding this comment

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

what happens if you make this bigger? does it make any difference on the speed? Try 4096 (4KiB), that is usually smallest block on disk it reads anyway

@Override
public String getHash(final byte[] digest) throws Exception {
// TODO do we actually need this?
throw new UnsupportedOperationException();
Copy link
Collaborator

Choose a reason for hiding this comment

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

check how it is done in case of sha

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.

3 participants