Closed Bug 1426357 Opened 7 years ago Closed 4 months ago

buildFontList causes jank soon after displaying about:preferences

Categories

(Firefox :: Settings UI, defect, P2)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Performance Impact low
Tracking Status
firefox-esr115 --- wontfix
firefox-esr128 --- wontfix
firefox59 --- wontfix
firefox131 --- wontfix
firefox132 --- wontfix
firefox133 --- fixed

People

(Reporter: florian, Assigned: javirid)

References

(Blocks 1 open bug)

Details

(Keywords: perf:frontend)

Attachments

(1 file, 1 obsolete file)

Bug 1375978 changed the font enumeration code to avoid main thread I/O, but this still does inefficient DOM manipulations. See https://perfht.ml/2Bpmkyz from the profile in bug 1425398. buildFontList (https://searchfox.org/mozilla-central/rev/ff462a7f6b4dd3c3fdc53c9bc0b328f42a5b3d2b/toolkit/mozapps/preferences/fontbuilder.js#19) causes jank by repeatedly calling appendChild (for each font found on the system). It should use a document fragment instead. See https://developer.mozilla.org/en-US/Firefox/Performance_best_practices_for_Firefox_fe_engineers#Adding_nodes_using_DocumentFragments
Priority: -- → P2
Whiteboard: [fxperf]
See Also: → 1458649
Whiteboard: [fxperf] → [fxperf:p3]
Severity: normal → S3
Performance Impact: --- → low
Keywords: perf:frontend
Whiteboard: [fxperf:p3]

https://share.firefox.dev/49YjxIW

(for my own records)

Assignee: nobody → foss
Status: NEW → ASSIGNED
Attachment #9429613 - Attachment is obsolete: true
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c8923cbbfd5a Use DocumentFragment on buildFontList(). r=jfkthame,mconley
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: