WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
283255
[JSC] Add `Array.prototype.fill` fast path with `std::fill`
https://bugs.webkit.org/show_bug.cgi?id=283255
Summary
[JSC] Add `Array.prototype.fill` fast path with `std::fill`
Sosuke Suzuki
Reported
2024-11-16 21:26:16 PST
The current implementation of Array.prototype.fill is written in simple JavaScript. This patch introduces a fast path for Array.prototype.fill, implementing it as C++ code using std::fill. TipOfTree Patched array-prototype-fill-undecided 5.3348+-0.3125 ^ 1.2260+-0.0131 ^ definitely 4.3515x faster array-prototype-fill-int32 3.7305+-0.0180 ^ 1.2081+-0.0305 ^ definitely 3.0880x faster array-prototype-fill-contiguous 5.6622+-0.1858 ^ 1.2336+-0.0089 ^ definitely 4.5898x faster array-prototype-fill-double 3.6588+-0.1293 ^ 1.2066+-0.0108 ^ definitely 3.0323x faster
Attachments
Add attachment
proposed patch, testcase, etc.
Sosuke Suzuki
Comment 1
2024-11-16 21:27:05 PST
Pull request:
https://github.com/WebKit/WebKit/pull/36769
Radar WebKit Bug Importer
Comment 2
2024-11-23 21:27:12 PST
<
rdar://problem/140489233
>
EWS
Comment 3
2024-12-02 06:44:55 PST
Committed
287215@main
(619232f3b3be): <
https://commits.webkit.org/287215@main
> Reviewed commits have been landed. Closing PR #36769 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug