Closed Bug 1479320 Opened 6 years ago Closed 5 years ago

Lazily load calendar unifinder tree

Categories

(Calendar :: Calendar Frontend, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 69.0

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

Follow up from bug 1477958 comment 6.
Summary: Lazily load calendar unifinder tree → Lazily load calendar tasks view and unifinder tree
Summary: Lazily load calendar tasks view and unifinder tree → Lazily load calendar unifinder tree
Attached patch 1479320-lazy-unifinder-1.diff (obsolete) (deleted) — Splinter Review

Does the job.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Attachment #9071175 - Flags: review?(philipp)
Keywords: perf
Comment on attachment 9071175 [details] [diff] [review]
1479320-lazy-unifinder-1.diff

Review of attachment 9071175 [details] [diff] [review]:
-----------------------------------------------------------------

::: calendar/base/content/calendar-unifinder.js
@@ +218,5 @@
> +        sortDirection = "ascending";
> +    }
> +    let tree = document.getElementById("unifinder-search-results-tree");
> +    let treecols = tree.getElementsByTagName("treecol");
> +    for (let i = 0; i < treecols.length; i++) {

Can you change this to a for..of while we are here?
Attachment #9071175 - Flags: review?(philipp) → review+
Attached patch 1479320-lazy-unifinder-2.diff (deleted) — Splinter Review
Attachment #9071175 - Attachment is obsolete: true
Attachment #9071208 - Flags: review+

I think this can live on just Daily for now, then join a later beta if it all works fine and actually helps start-up performance.

Keywords: checkin-needed
Target Milestone: --- → 7.1

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/4e10b0b8aa3f
Lazily load calendar unifinder tree. r=philipp

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED

(In reply to Geoff Lankow (:darktrojan) from comment #4)

[if] actually helps start-up performance.

Were you able to measure improvement?

Flags: needinfo?(geoff)

There's many reasons we call this function, so it's difficult to say it's better in all cases. But in an extreme case, such as importing many events into a calendar which already has a lot, there's a significant improvement.

Flags: needinfo?(geoff)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: