Skip to content

Conversation

@wangkanai
Copy link
Owner

  • Adler32 if more than 4096, how to split into chuck.

- [ ] Adler32 if more than 4096, how to split into chuck.
@wangkanai wangkanai self-assigned this Jul 23, 2023
@wangkanai wangkanai added this to the 8.0 milestone Jul 23, 2023
Copy link
Owner Author

@wangkanai wangkanai left a comment

Choose a reason for hiding this comment

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

complete review

public static int Checksum(string text)
=> Checksum(Encoding.ASCII.GetBytes(text));
{
return Checksum(Encoding.ASCII.GetBytes(text));
Copy link
Owner Author

Choose a reason for hiding this comment

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

Should check if length greater than 4096 before converting to byte[]?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Need to check the performance difference and make a decision

Copy link
Owner Author

Choose a reason for hiding this comment

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

There is not much difference between checking for exceptions before or after converting to bytes.

image

@siyo-wang
Copy link

siyo-wang commented Aug 9, 2023 via email

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 9, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

21.7% 21.7% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@wangkanai wangkanai merged commit c61fa27 into main Aug 9, 2023
@wangkanai wangkanai deleted the features/hash branch November 1, 2023 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants