ulid-ruby
ulid-ruby copied to clipboard
Optimize `encode32`
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.