Closed Bug 1424047 Opened 7 years ago Closed 6 years ago

ResolveFlattening is the hottest function during WR DisplayList building on facebook-refresh

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

https://perfht.ml/2nFUZ4T

mstange thinks we don't need to spend so much time here
Blocks: 1422039
Any thoughts Ethan?
Flags: needinfo?(ethlin)
The container of the stack seems to be the reason. I don't see the ResolveFlattening in the gecko profiler[1] after using std::list, though I'm not sure why the AutoTArray is slower in this case. Jeff, can you check if the patch helps? Maybe ClearInvalidationStateBits has the same problem. I'll investigate more deeply.

[1] https://perfht.ml/2Bihu60
Flags: needinfo?(ethlin)
Flags: needinfo?(jmuizelaar)
Whiteboard: [wr-mvp] [triage]
So I looked at this more closely in Instruments. It turns out this is just the cache miss that we get for visiting the next nsDisplayItem.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(jmuizelaar)
Resolution: --- → INVALID
Whiteboard: [wr-mvp] [triage]
No longer blocks: 1422039
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: