Improve performance of repeating strings (#3272)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This commit improves the performance of repeating strings, by copying the result string instead of the string being repeated. Also it adds an error message when the result string is too long.
authored by itchyny · committed by GitHub · parent 5df471f · Browse files · 4 files+41 added−13 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+41 added−13 removed
- tests:+12 added−0 removed
- other:+29 added−13 removed