[Webkit-unassigned] [Bug 232479] New: [JSC] Public Class Field initialization is slow
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 29 00:53:29 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=232479
Bug ID: 232479
Summary: [JSC] Public Class Field initialization is slow
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: rob.palmer2 at gmail.com
Created attachment 442791
--> https://bugs.webkit.org/attachment.cgi?id=442791&action=review
Field Initialization Benchmark
I benchmarked ES2022 class field initialization time.
https://gist.github.com/robpalme/a9ff3e4764b764d7dc24743816d8a624#gistcomment-3944128
In Chrome and Firefox, public field initialization has been optimized to have similar performance to private fields. Performance is also similar to assigning to `this` inside the constructor.
In latest Safari Tech Preview 134, performance of public field initialization is 12x worse than both private fields and constructor assignment.
- Classic Constructor Assignments: 38ms
- Public Fields: 462ms
- Private Fields: 33ms
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211029/2a14dfa3/attachment-0001.htm>
More information about the webkit-unassigned
mailing list