Closed Bug 1826106 Opened 1 year ago Closed 11 months ago

Update the Stencil API usage in the Utility Process to avoid JSContext

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: sefeng, Assigned: arai)

References

Details

(Whiteboard: [orb:m2])

Attachments

(1 file)

No description provided.
Depends on: 1816776
Depends on: 1829281
Depends on: 1834478
Depends on: 1834483
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Attachment #9336524 - Attachment description: WIP: Bug 1826106 - Use JS::FrontendContext in Utility Process. r?sefeng! → Bug 1826106 - Use JS::FrontendContext in Utility Process. r?sefeng!
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/b2a1e760b231
Use JS::FrontendContext in Utility Process. r=sefeng
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch

Perfherder has detected an awsy performance improvement from push b2a1e760b23149650ac1c047f6529cbeae6deefe.
One of Bug 1826106, Bug 1826105, Bug 1834478 is causing this improvement. As author of the patches could you provide some input on which one of the bugs might be causing the improvement? Thanks.

Flags: needinfo?(arai.unmht)

It should be mostly from this bug's patch.

  • Bug 1834478 patch is just a preparation
  • Bug 1826105 patch can reduce the memory consumption which is caused by objects corresponds to JS object temporarily allocated when the input matches JSON, but the effect would be very limited and only temporarily
  • Bug 1826106 patch reduces the memory consumption by skipping the initialization of most part of the JS engine runtime (self-hosting, global, gc, and possibly threads). now the utility process uses light-weight version of the JS API, and this should be most impactful.
Flags: needinfo?(arai.unmht)

(In reply to Pulsebot from comment #2)

Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/b2a1e760b231
Use JS::FrontendContext in Utility Process. r=sefeng

== Change summary for alert #38681 (as of Wed, 14 Jun 2023 08:07:56 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
4% Heap Unclassified windows11-64-2009-shippable-qr fission tp6 96,772,363.98 -> 92,870,616.80
3% Heap Unclassified windows11-64-2009-shippable-qr fission tp6 96,691,348.27 -> 93,336,106.99

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=38681

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: