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)
Firefox
Settings UI
Tracking
()
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
Updated•7 years ago
|
Priority: -- → P2
Updated•7 years ago
|
Whiteboard: [fxperf]
Updated•7 years ago
|
Whiteboard: [fxperf] → [fxperf:p3]
Updated•2 years ago
|
Severity: normal → S3
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•11 months ago
|
||
https://share.firefox.dev/49YjxIW
(for my own records)
Assignee | ||
Comment 2•4 months ago
|
||
Assignee | ||
Comment 3•4 months ago
|
||
Updated•4 months ago
|
Assignee: nobody → foss
Status: NEW → ASSIGNED
Updated•4 months ago
|
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
Comment 5•4 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
status-firefox133:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Updated•4 months ago
|
status-firefox131:
--- → wontfix
status-firefox132:
--- → wontfix
status-firefox-esr115:
--- → wontfix
status-firefox-esr128:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•