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

Adds an optimization in case when a single number is passed to encode #49

Merged

Conversation

dompagoj
Copy link
Contributor

@dompagoj dompagoj commented Mar 24, 2022

I figured that by far the most used case is passing a single number to the Encode function, so i added a very small optimization to it, performance is about the same, but memory consumtion is close to 3x less.

image

@manigandham
Copy link
Collaborator

Looks good, thanks @dompagoj

@manigandham manigandham merged commit 51e4204 into ullmark:master Mar 24, 2022
@manigandham manigandham self-assigned this Mar 26, 2022
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.

None yet

2 participants