[webkit-changes] [WebKit/WebKit] b348cf: [JSC] Handle 3 fiber rope string resolution effici...
Yusuke Suzuki
noreply at github.com
Sat Dec 28 03:16:37 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b348cf2fe00510ece18c5e0e5d995a26aa82b2ca
https://github.com/WebKit/WebKit/commit/b348cf2fe00510ece18c5e0e5d995a26aa82b2ca
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-12-28 (Sat, 28 Dec 2024)
Changed paths:
M Source/JavaScriptCore/runtime/JSStringInlines.h
Log Message:
-----------
[JSC] Handle 3 fiber rope string resolution efficiently
https://bugs.webkit.org/show_bug.cgi?id=285215
rdar://142119083
Reviewed by Yijia Huang.
This patch makes 3 fiber rope string resolution more efficient.
1. When the first fiber (fiber0) is rope, then we do rope resolution
without going to the slow path when stack height is enough.
If it is not a rope, then we just spread it into the result buffer.
2. Then, we use 2 fiber rope string resolution with the remaining
fibers.
* Source/JavaScriptCore/runtime/JSStringInlines.h:
(JSC::JSRopeString::resolveToBuffer):
Canonical link: https://commits.webkit.org/288318@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list