Closed Bug 1370575 Opened 7 years ago Closed 6 years ago

Overpainting when composing a reply in GMail

Categories

(Core :: Web Painting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Performance Impact high
Tracking Status
platform-rel --- ?
firefox61 --- fixed

People

(Reporter: RyanVM, Assigned: mattwoodrow)

References

Details

(Keywords: perf, Whiteboard: [platform-rel-Google][platform-rel-Gmail])

Attachments

(2 files)

This might be a dupe of an existing bug, but I didn't see an obvious candidate when I searched.

I noticed very sluggish performance while typing a reply to a message in a GMail thread today. When I turned paint flashing on, it appears that every character I typed was forcing the entire message viewing pane to repaint (rather than just the message composition box or some smaller area).

A similar effect is also visible when composing a new message, though the sluggishness isn't as apparent since it's only the repainting the new message pane when typing.
Attached image screen recording
I recorded this on a clean profile.
Whiteboard: [qf] → [qf:p1]
Smells a bit like bug 1343538. I'll find us someone to dive deeper here.
See Also: → 1343538
Markus: I'm assigning this one to you since you're already looking at bug 1343538. If we find that root causes are different, let's fix GMail first. Thx!
Assignee: nobody → mstange
Markus confirmed that he will try to get this bug fixed by Fx57.
This might not make it for 57 so I am moving it to P2 for post 57 work.
Whiteboard: [qf:p1] → [qf:p2]
Keywords: perf
I can still reproduce, though -- this isn't bad in a *new* compose message.

It's only super-bad (invalidating approximately the whole viewport) in replies to an existing email thread, as shown in RyanVM's screencast.

Bumping to P1 since this is a common workflow and GMail is a commonly-used site. :) Markus, do you think you can still get to this? If not, maybe mattwoodrow can take a look?
Flags: needinfo?(mstange)
Summary: Overpainting when composing messages in GMail → Overpainting when composing a reply in GMail
Whiteboard: [qf:p2] → [qf:p1]
Whiteboard: [qf:p1] → [qf:i60][qf:p1]
Whiteboard: [qf:i60][qf:p1] → [qf:f60][qf:p1]
platform-rel: --- → ?
Whiteboard: [qf:f60][qf:p1] → [qf:f60][qf:p1][platform-rel-Google][platform-rel-Gmail]
Whiteboard: [qf:f60][qf:p1][platform-rel-Google][platform-rel-Gmail] → [qf:f61][qf:p1][platform-rel-Google][platform-rel-Gmail]
I can reproduce this too, stealing.

This is the same underlying issue as bug 1442844, where we reflow a frame multiple times (the first with a 0 size), and generate unnecessary invalidations from the first one.

DLBI normally handles this well, but the table code still does manual invalidation, and results in this.

I think we can fix this particular case, but the general problem is harder to fix.
Assignee: mstange → matt.woodrow
Flags: needinfo?(mstange)
Attachment #8963871 - Flags: review?(mstange) → review+
Pushed by mwoodrow@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a5bfd78a9594
Do less manual invalidation when tables changes, and rely on DLBI instead. r=mstange
https://hg.mozilla.org/mozilla-central/rev/a5bfd78a9594
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Whiteboard: [qf:f61][qf:p1][platform-rel-Google][platform-rel-Gmail] → [qf:p1:f61][platform-rel-Google][platform-rel-Gmail]
Performance Impact: --- → P1
Whiteboard: [qf:p1:f61][platform-rel-Google][platform-rel-Gmail] → [platform-rel-Google][platform-rel-Gmail]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: