Closed Bug 1811410 Opened 2 years ago Closed 2 years ago

Dragging the splitter is very inefficient

Categories

(Thunderbird :: General, defect)

defect

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
111 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(1 file)

The splitter updates on every mousemove event, and every update causes a reflow. This is a horrible waste of CPU time. I'm going to stop it from updating more than once per frame, as any more frequently does nothing of value, it's not even drawn to the screen.

It's still going to need to reflow at every update because that's how it works out whether it's reached the edge of the allowed area. For simple situations we could pre-calculate this and avoid reflows, but most situations are not simple.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/457840c56921
Improve the performance of dragging the splitter. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/dd49b861e1b5 follow-up - Fix missed review comment. rs=me
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: