Closed Bug 1780326 Opened 2 years ago Closed 2 years ago

Calendar views take a long time to load

Categories

(Calendar :: Calendar Frontend, defect)

defect

Tracking

(thunderbird_esr102 wontfix)

RESOLVED FIXED
104 Branch
Tracking Status
thunderbird_esr102 --- wontfix

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: perf, perf:startup)

Attachments

(1 file)

I've been running the profiler over start-up and discovered that the four calendar views each take a long time (okay, milliseconds) to load, and they do so even if the user never sees them. Given that the number of views actually looked at in a session probably averages less than one, we should avoid doing the slow parts unless we need to.

I've tried to do as little as possible here, to avoid potential side-effects, and because a complete rework of these views is planned.

Did you find out why the views are taking long? Can you share the profile?

Flags: needinfo?(geoff)

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/177e090c6fbd
Do loading of calendar views only if/when they are displayed. r=mkmelin

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

It's just a lot of code, I think. I haven't looked too closely. Each custom element adds a lot more custom elements, and each of those has to be initialised.

Flags: needinfo?(geoff)
Target Milestone: --- → 104 Branch
Regressions: 1788129
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: