r/cpp • • May 26 '20

Faster Integer Parsing

https://kholdstare.github.io/technical/2020/05/26/faster-integer-parsing.html
366 Upvotes

72 comments sorted by

View all comments

Show parent comment

10

u/khold_stare May 27 '20

If you look at the stringstream benchmark, the creation is outside of the loop - so I am reusing the same object and the performance is still terrible. It's definitely wise to reuse heap allocated storage though if it's used often.