[webkit-changes] [WebKit/WebKit] 72ed5e: Avoid some string allocations in JSStringJoiner::j...
Chris Dumez
noreply at github.com
Tue Mar 28 10:40:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 72ed5e715480a97da6c55be10cd6c058287df888
https://github.com/WebKit/WebKit/commit/72ed5e715480a97da6c55be10cd6c058287df888
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-03-28 (Tue, 28 Mar 2023)
Changed paths:
M Source/JavaScriptCore/runtime/JSStringJoiner.h
M Source/WTF/wtf/text/StringView.h
Log Message:
-----------
Avoid some string allocations in JSStringJoiner::join()
https://bugs.webkit.org/show_bug.cgi?id=254594
Reviewed by Yusuke Suzuki.
Avoid some string allocations in JSStringJoiner::join(), in the common case
where the StringViewWithUnderlyingString's view covers the whole underlying
string.
* Source/JavaScriptCore/runtime/JSStringJoiner.h:
(JSC::JSStringJoiner::join):
* Source/WTF/wtf/text/StringView.h:
(WTF::StringViewWithUnderlyingString::toString const):
Canonical link: https://commits.webkit.org/262228@main
More information about the webkit-changes
mailing list