Replies: 1 comment
-
I've merged your PR to optimize this case #1672. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://godbolt.org/z/YsYq1q14P
Such implementation will resize string only once, so will do single allocation instead of
O(n)
Beta Was this translation helpful? Give feedback.
All reactions