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)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: froydnj, Assigned: froydnj)
Details
Attachments
(1 file)
4.14 KB,
patch
|
bugzilla
:
review+
|
Details | Diff | Splinter Review |
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.
![]() |
Assignee | |
Comment 1•10 years ago
|
||
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 2•10 years ago
|
||
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+
Comment 3•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Comment 4•10 years ago
|
||
No Talos improvements :/
http://graphs.mozilla.org/graph.html#tests=[[83,131,25]]&sel=none&displayrange=7&datatype=geo
You need to log in
before you can comment on or make changes to this bug.
Description
•