Chromium Code Reviews
DescriptionUse StringView for String::replace.
This avoids allocating temporary strings when calling ::replace("a", "b").
Note that unlike other String simplifications done recently we don't add this
API to AtomicString since doing replace() calls on an AtomicString and
allocating more AtomicStrings isn't something we really expect people to do.
BUG=615174
Committed: https://crrev.com/f4231901c30a54d3a94de3c7be22ffab13011032
Cr-Commit-Position: refs/heads/master@{#411846}
Patch Set 1 #Patch Set 2 : names. #Patch Set 3 : woops. #
Messages
Total messages: 23 (18 generated)
|
|||||||||||||||||||||||||||||||||||||