Chromium Code Reviews
DescriptionAdd StringView::toAtomicString().
We should go directly from the LChar*/UChar* to an AtomicString which
saves doing the malloc and copy of a temporary StringImpl to pass into
the AtomicString constructor. Instead if we pass the bytes and length
the HashSet translator can directly hash the bytes and lookup the
existing atomic StringImpl.
BUG=615174
Committed: https://crrev.com/07dd6f5d6b4603cde39464177d6fac57b7835317
Cr-Commit-Position: refs/heads/master@{#397306}
Patch Set 1 #Patch Set 2 : Add tests. #
Messages
Total messages: 23 (11 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||