Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up md5 generation #606

Merged
merged 1 commit into from
Apr 19, 2021
Merged

Speed up md5 generation #606

merged 1 commit into from
Apr 19, 2021

Conversation

adellibovi
Copy link
Collaborator

Short description 📝

Most of the time spent for the MD5 is not actually the calculation of the MD5 itself, but rather the creation of Strings and the appending of those. With this change I went from ~1.4s to ~0.1s

Solution 📦

As preallocate the required pointer size and fill with their correspondent hex characters.

@adellibovi adellibovi requested review from kwridan and pepicrft April 19, 2021 16:35
@pepicrft pepicrft merged commit c5419e1 into main Apr 19, 2021
@adellibovi adellibovi deleted the improve-md5 branch April 20, 2021 07:15
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.

2 participants