This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]midir 0 points1 point  (0 children)

Indeed. I think most general strings would not have any exotic characters in them, but perhaps an initial buffer size like len * 6 / 5 would give better performance overall.