Closed
Bug 2065981
Opened 2 months ago
Closed 2 months ago
Inline simple Temporal getters (Duration, PackedTime, epochNanoseconds)
Categories
(Core :: JavaScript Engine: JIT, enhancement, P3)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
158 Branch
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: n8pjl, Assigned: n8pjl)
References
(Blocks 1 open bug)
Details
Attachments
(3 external files)
Prematurely optimize the simplest of Temporal getters.
These getters all are likely to be widely used soon and all consist of 1-2 fixed-slot loads with a little arithmetic. I found a 5x (Ion, 1.8x in baseline) performance improvement in microbenchmarks by eliminating native call overhead, putting performance on par with plain property access.
Don't worry, I won't be specializing more complex Temporal functions until they start showing up in real profiles.
| Assignee | ||
Comment 1•2 months ago
|
||
Updated•2 months ago
|
Assignee: nobody → peter
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
| Assignee | ||
Comment 2•2 months ago
|
||
Emit unpacking code inline where no further computation is required.
| Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
Pushed by jdemooij@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/b8f849f8a216
https://hg.mozilla.org/integration/autoland/rev/33b2c57958bf
Inline trivial Temporal Duration getters. r=spidermonkey-reviewers,jandem
https://github.com/mozilla-firefox/firefox/commit/21bbc7d3d4e5
https://hg.mozilla.org/integration/autoland/rev/354970cc11fc
Inline Temporal plain time getters. r=spidermonkey-reviewers,jandem
https://github.com/mozilla-firefox/firefox/commit/ee3fa8f41632
https://hg.mozilla.org/integration/autoland/rev/33d4f87dacc8
Inline Temporal epochMilliseconds getters. r=spidermonkey-reviewers,jandem
https://hg.mozilla.org/mozilla-central/rev/33b2c57958bf
https://hg.mozilla.org/mozilla-central/rev/354970cc11fc
https://hg.mozilla.org/mozilla-central/rev/33d4f87dacc8
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox158:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c159/b158]
You need to log in
before you can comment on or make changes to this bug.
Description
•