Closed Bug 1646145 Opened 3 months ago Closed 3 months ago

Use lazy property resolution for constants on JS IID reflectors

Categories

(Core :: XPConnect, task)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

(Keywords: perf-alert, Whiteboard: [overhead:10k])

Attachments

(1 file)

We waste about 10KB per base content process by eagerly defining these constants, which go mostly unused.

Whiteboard: [overhead:10k]
Pushed by maglione.k@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c9871e6a258b
Use lazy property resolution for constants on JS IID reflectors. r=nika
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79

== Change summary for alert #26301 (as of Tue, 23 Jun 2020 05:28:30 GMT) ==

Improvements:

1% Base Content JS linux1804-64-shippable opt 3,690,952.00 -> 3,670,265.67
1% Base Content JS linux1804-64-shippable-qr opt 3,691,027.33 -> 3,670,494.67
1% Base Content JS linux1804-64-shippable-qr opt 3,690,595.50 -> 3,671,768.00
0.29% Base Content JS windows7-32-shippable opt 2,877,017.00 -> 2,868,661.33

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

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