Closed Bug 1906312 Opened 4 months ago Closed 4 months ago

Use external string cache more for NewStringFromBuffer

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox128 --- unaffected
firefox129 --- fixed
firefox130 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: perf-alert, regression, Whiteboard: [sp3])

Attachments

(1 file)

In NewStringFromBuffer we're using this cache for the inline-Latin1 fast path but not the other cases.

This should fix a regression from bug 1903037 on the "perf_reftest_singletons id-getter" micro-benchmarks that benefit a lot from this cache.

Use the cache for NewMaybeExternalString also for the non-inline-Latin1 path
in NewStringFromBuffer.

This fixes a regression from bug 1903037 on the "perf_reftest_singletons id-getter"
micro-benchmarks that benefit a lot from this cache.

Blocks: 1906350
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/82d75da2b035 Use external string cache more for NewStringFromBuffer. r=sfink
Severity: -- → N/A
Priority: -- → P3
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Whiteboard: [sp3]

Comment on attachment 9411269 [details]
Bug 1906312 - Use external string cache more for NewStringFromBuffer. r?sfink!

Beta/Release Uplift Approval Request

  • User impact if declined: Potential performance or memory usage issues.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Patch has been in Nightly for a while and is straight-forward.
  • String changes made/needed: N/A
  • Is Android affected?: Yes
Attachment #9411269 - Flags: approval-mozilla-beta?
Type: task → defect
Keywords: regression
Regressed by: 1903037

Comment on attachment 9411269 [details]
Bug 1906312 - Use external string cache more for NewStringFromBuffer. r?sfink!

Approved for 129.0b5

Attachment #9411269 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

(In reply to Pulsebot from comment #2)

Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/82d75da2b035
Use external string cache more for NewStringFromBuffer. r=sfink

Perfherder has detected a talos performance change from push 86f824b9ee1956da8f9753cdeaeaa210c1f90342.

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
27% perf_reftest_singletons id-getter-4.html windows11-64-shippable-qr e10s fission stylo webrender 418.54 -> 307.45
26% perf_reftest_singletons id-getter-7.html windows11-64-shippable-qr e10s fission stylo webrender 413.31 -> 307.49
26% perf_reftest_singletons id-getter-3.html windows11-64-shippable-qr e10s fission stylo webrender 413.41 -> 307.75
25% perf_reftest_singletons id-getter-6.html windows11-64-shippable-qr e10s fission stylo webrender 413.21 -> 309.33
25% perf_reftest_singletons id-getter-5.html windows11-64-shippable-qr e10s fission stylo webrender 412.95 -> 309.41
... ... ... ... ...
21% perf_reftest_singletons id-getter-5.html macosx1015-64-shippable-qr e10s fission stylo webrender 812.13 -> 638.34

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 1149

For more information on performance sheriffing please see our FAQ.

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

Attachment

General

Created:
Updated:
Size: