marshallpierce / rust-base64

base64, in rust
Apache License 2.0
606 stars 113 forks source link

decode vec size -- don't oversize the vector #187

Closed marshallpierce closed 2 years ago

marshallpierce commented 2 years ago

Pointed out in #179.

Given that it's about to be resize()'d anyway, probably doesn't serve any purpose to allocate eagerly.

marshallpierce commented 2 years ago

Offers a nice speed boost on tiny decodes.