Closed Bug 1780328 Opened 2 years ago Closed 2 years ago

Chat core start-up takes a very long time, blocks Thunderbird start-up

Categories

(Chat Core :: General, defect)

defect

Tracking

(thunderbird_esr102 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
thunderbird_esr102 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: perf, perf:startup)

Attachments

(2 files)

By commenting out the auth prompt in chatHandler.jsm, the time taken from Thunderbird start-up to first paint drops from 4.1s to 1.5s, on my test profile.

This code looks like it starts everything in chat, which is fine, but we need to move it so it's not blocking the UI.

The current method of running this code inside a password prompt causes the UI thread to wait until Chat is initialised, causing a major delay in painting the program on the screen.
And it appears to no longer be required. At least one other thing causes a primary password prompt at start-up, and even if that is cancelled calling the login service functions bring up the prompt.

Assignee: nobody → geoff
Status: NEW → ASSIGNED

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/d2810b742e64
Initialising the Chat core after the first window loads. r=freaktechnik

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

We should take this one to ESR, it's such a big improvement. But not before it gets a good workout on beta.

Target Milestone: --- → 104 Branch

Comment on attachment 9286194 [details]
Bug 1780328 - Initialising the Chat core after the first window loads. r=freaktechnik

[Triage Comment]
Approved for esr102

It's been on 104 for a month, so should be solid.

Attachment #9286194 - Flags: approval-comm-esr102+

Modified for comm-esr102.

Attachment #9290512 - Flags: review?(geoff)

Comment on attachment 9290512 [details] [diff] [review]
1780328-esr102.patch

LGTM.

Attachment #9290512 - Flags: review?(geoff) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: