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

Improve the checksumming speed. #2239

Merged
merged 1 commit into from Nov 24, 2017

Conversation

alex-gh
Copy link
Contributor

@alex-gh alex-gh commented Nov 23, 2017

This PR improves the checksumming speed by a factor of 1.4-3.4. It does so by avoiding the overhead of calling ord() for every single character.

It has been tested by providing the same data to the old and the new algorithm and getting the same result back.

@foosel foosel merged commit 06ab173 into OctoPrint:maintenance Nov 24, 2017
@foosel
Copy link
Member

foosel commented Nov 24, 2017

\o/

@alex-gh alex-gh deleted the faster_checksum branch November 24, 2017 12:17
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants