Chromium Code Reviews
DescriptionUse StringView for String::findIgnoringCase and findIgnoringASCIICase.
StringImpl's version of this already takes a StringView, but the proxy
functions on String took a const String& so callers like
didFireWebGLErrorOrWarning doing message.findIgnoringCase("error") were
allocating temporary strings.
Instead we make the String methods take a StringView too to avoid the
extra allocations. I also added these methods to AtomicString so the API
is the same.
BUG=615174
Committed: https://crrev.com/c34b20c196d32daae5764098479936bc7e10e61f
Cr-Commit-Position: refs/heads/master@{#410973}
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|
||||||||||||||||||||||||||||