Closed Bug 1844830 Opened 2 years ago Closed 2 years ago

Optimize textrun initialization, for Editor-TipTap

Categories

(Core :: Layout: Text and Fonts, task)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(3 files)

+++ This bug was initially created as a clone of Bug #1844464 +++

The patches in bug 1844464 should improve the font-shaping performance in this test. Here, I'm hoping to optimize some of the other parts of textrun construction as well, as I think there are some (minor) gains to be had.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED

In local (non-PGO) builds, I'm seeing an improvement of around 2-4% on the Editor-TipTap score with these patches.

No longer depends on: 1844464

There's no reason for this to be signed, and the callers are using an unsigned index already.

(Won't make any difference, especially once the optimizer has had a look at it; this is just
a bit of cleanup noticed in passing.)

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/12af03069bf1 patch 1 - Convert gfxFont's shaped-word cache from nsTHashtable to mozilla::HashMap for faster performance. r=gfx-reviewers,lsalzman https://hg.mozilla.org/integration/autoland/rev/7f0c75c707f8 patch 2 - Micro-optimize grapheme cluster checks used during textrun creation. r=gfx-reviewers,lsalzman https://hg.mozilla.org/integration/autoland/rev/6d887cf7ea09 patch 3 - gfxFontGroup::GetFontAt should take an unsigned index. r=gfx-reviewers,lsalzman
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: