Two small gfxSkipCharsIterator cleanups
Categories
(Core :: Layout, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox108 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
Details
Attachments
(2 external files)
The first patch in bug 1796697 turned out to have surprising perf impact.
I'm spinning this bug off to independently land some of the pieces over there that aren't dependent on that problematic piece and that have no perf impact.
| Assignee | ||
Comment 1•4 years ago
|
||
Before this patch, we implicitly invoke the default constructor for this
member-var, and then immediately stomp on the results with a reassignment.
This patch avoids that unnecessary usage of the default constructor, saving
ourslves a bit of work and getting this member-var more directly into a
fully-initialized/valid state.
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
In practice, it's only instantiated on the stack; and that's kinda important,
to reduce the likelihood that it somehow outlives the 'gfxSkipChars' instance
that it maintains a raw pointer to and is iterating over.
Comment 4•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3ca372ab2cec
https://hg.mozilla.org/mozilla-central/rev/6d6c7ba89b31
Description
•