Closed Bug 1153259 Opened 10 years ago Closed 10 years ago

use NS_NewByteInputStream in zipwriter to reduce do_CreateInstance overhead

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

Profiling startup shows that we have several thousand calls to: do_CreateInstance("@mozilla.org/io/string-input-stream;1") and virtually all of them are located in the zipwriter code. We can create string input streams much more directly with NS_NewByteInputStream, which avoids a lot of overhead associated with do_CreateInstance.
Not sure if you are exactly the right person to review, but ISTR you reviewing things in zipwriter/ before. Feel free to forward on to somebody else.
Attachment #8590869 - Flags: review?(aklotz)
Comment on attachment 8590869 [details] [diff] [review] use NS_NewByteInputStream in zipwriter to reduce do_CreateInstance overhead Review of attachment 8590869 [details] [diff] [review]: ----------------------------------------------------------------- I'm comfortable with reviewing this. Nice catch!
Attachment #8590869 - Flags: review?(aklotz) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: