Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Optimize mutable iterations while encoding data #2597
rossabaker left a comment
I added a crude benchmark to convince myself. Would be better if it used different sizes, but I was in a hurry. But it looks like you're right: cleaner and a little faster. Nice work.
If you have an urgent need for the extra performance, I can cherry-pick this back to series/0.20. There's also a bugfix PR open, so we'll be doing a maintenance release soon. If it's just nice to have in the long run, it'll be released in the 0.21 series, and can be tried now with 0.21.0-SNAPSHOT.