Bug 283255
Summary: | [JSC] Add `Array.prototype.fill` fast path with `std::fill` | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sosuke Suzuki <aosukeke> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Sosuke Suzuki
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
Pull request: https://github.com/WebKit/WebKit/pull/36769
Radar WebKit Bug Importer
<rdar://problem/140489233>
EWS
Committed 287215@main (619232f3b3be): <https://commits.webkit.org/287215@main>
Reviewed commits have been landed. Closing PR #36769 and removing active labels.