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 performance of the hex encoder #40

Merged
merged 1 commit into from
Jun 14, 2022
Merged

Improve performance of the hex encoder #40

merged 1 commit into from
Jun 14, 2022

Conversation

TimWolla
Copy link
Contributor

@TimWolla TimWolla commented Mar 2, 2022

Single bytes can more efficiently be accessed by directly indexing the string.

This also implicitly fixes a bug without any visible effect: encodeUpper
retrieved two characters from the bytestring, but only ever used the first.

Single bytes can more efficiently be accessed by directly indexing the string.

This also implicitly fixes a bug without any visible effect: `encodeUpper`
retrieved two characters from the bytestring, but only ever used the first.
@TimWolla
Copy link
Contributor Author

CI failures should (hopefully) be fixed with #42.

@paragonie-security paragonie-security merged commit 292fe13 into paragonie:master Jun 14, 2022
@TimWolla TimWolla deleted the performance branch June 14, 2022 07:14
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