Open Bug 312506 Opened 19 years ago Updated 2 years ago

switch ICS exporter to use serializeToICSStream

Categories

(Calendar :: Internal Components, defect)

defect

Tracking

(Not tracked)

People

(Reporter: dmosedale, Unassigned)

Details

(Keywords: perf)

serializeToICSStream was added in bug 312381 for performance.  We need to
somehow make it so that both the ICS provider and the ICS exporter can leverage
that code to avoid unnecessary copies, conversions, and XPConnect traversals. 
This could involve using a pipe, a storage stream, or refactoring of
serializeToICSStream, depending on what constraints we want to accept.
Unfortunately, I do not have cycles to work on Calendar stuff these days (just as it's getting to the good part!), so I am a bad owner for these bugs.  To delete the tragically-large chunk of bugspam, search for gregorianabdication.
Assignee: shaver → nobody
Isn't this already fixed by Bug 364841?
IMO only for calICSCalendar. calIcsSerializer.serializeToStream (used by calICsImportExport) still serializes into string, then builds up an output stream.

this is no longer useful, correct?

Flags: needinfo?(mschroeder)

(In reply to Wayne Mery (:wsmwk) from comment #4)

this is no longer useful, correct?

Comment#3 is still true. At https://searchfox.org/comm-central/source/calendar/base/src/CalIcsSerializer.jsm#43 first the whole iCalendar string is created and afterwards converted to a stream. Maybe this should be put in a new separate issue, so this one can be closed.

Flags: needinfo?(mschroeder)

I should have been more clear - what I mean is, we probably wouldn't invest effort in this with ical-js being the near term goal?

Magnus will have an opinion, I hope. :)

Flags: needinfo?(mkmelin+mozilla)

I don't think it's necessarily tied to ical-js, though after that lots of xpcom could be removed.

Flags: needinfo?(mkmelin+mozilla)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.