Closed Bug 1668332 Opened 5 years ago Closed 5 years ago

CacheIR: Optimize global name DOM getters like bareword `document`

Categories

(Core :: JavaScript Engine: JIT, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: evilpies, Assigned: evilpies)

References

(Blocks 1 open bug)

Details

(Keywords: perf-alert)

Attachments

(1 file)

When doing something like document.getElementById in JS, the document lookup is actually a getter call on the global JS object (i.e, window). By using our existing support for DOM getters from bug 1664617, we automatically get a huge performance boost. document for example is a simple slot load using MGetDOMMember instead of an actual call.

The micro benchmark getElementById-1.html for example improves from 120ms to 70ms.

Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/36503a9bb36d Optimize global name DOM getters like bareword `document`. r=jandem
Severity: -- → N/A
Status: NEW → ASSIGNED
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch

== Change summary for alert #27118 (as of Fri, 02 Oct 2020 16:36:58 GMT) ==

Improvements:

51% raptor-assorted-dom-firefox linux64-shippable-qr opt webrender 166.79 -> 81.58
50% raptor-assorted-dom-firefox linux64-shippable opt 162.80 -> 81.87

For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=27118

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: