Closed Bug 1736288 Opened 3 years ago Closed 3 years ago

Avoid calling ICAL.parse to create timezones in ICAL.js

Categories

(Calendar :: ICAL.js Integration, enhancement)

enhancement

Tracking

(thunderbird_esr91 wontfix)

RESOLVED FIXED
95 Branch
Tracking Status
thunderbird_esr91 --- wontfix

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

The current code to create a time zone makes a string for an entire VCALENDAR, parses it, then extracts the VTIMEZONE component and passes it to ICAL.Timezone.fromData. We can skip all of this and just pass the string data straight to fromData.

This is a not-nothing performance win in some of the tests.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/9c894a746ae6
Avoid calling ICAL.parse to create timezones in ICAL.js. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: