Skip to content

Conversation

@casperisfine
Copy link

ENCODING is a String, and String#[] allocates another 1 char wise String.

So each encode32 call allocates almost 40 useless strings. By using an array instead, we avoid these allocations.

`ENCODING` is a String, and `String#[]` allocates another 1 char wise
String.

So each `encode32` call allocates almost 40 useless strings.
By using an array instead, we avoid these allocations.
@colinbendell
Copy link

I think this can be closed in favour of #10 which removes all this string manipulation logic

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.

3 participants