Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid potentially unnecessary string reallocs.
In case `dest` is not created using a subset of the `input` `dest.reserve(input.size())` would result in increasing `dest`s size with likely reallocation. On top of being less efficient new version also generates significantly less asm with GCC 13. https://compiler-explorer.com/z/x3avEdWGM
- Loading branch information