Closed Bug 92479 Opened 18 years ago Closed 18 years ago

nsPersistentProperties reads 1 byte at a time.


(Core :: XPCOM, defect)

Windows 2000
Not set





(Reporter: dougt, Assigned: darin.moz)



(Keywords: perf)


(2 files)

nsPersistentProperties reads one char at a time from the input stream.  This
should be change to read and process a block at a time.
Summary: nsPersistentProperties read 1 byte at a time. → nsPersistentProperties reads 1 byte at a time.
Blocks: 7251
Keywords: perf
ack. bad patch.  I am reallocating when I don't have too...
hey chris, can you look at this patch?  
Keywords: patch
Wow, many times do we buffer this data now? (I'd have thought the whole
point of nsIUnicharInputStream would've been to buffer the data.) Would it be
better to do the buffering there?

I notice that |ConverterInputStream| (in nsUnicharInputStream.cpp) has an
|nsIUnicharBuffer| member: is this not working right?
I should have marked this bug dependent on

ignore for now...  I need to get results.
Depends on: 92477
Target Milestone: --- → mozilla0.9.4
No longer blocks: 7251
Blocks: 7251
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla1.0
Blocks: 98275
Doug ? Seems wrong to make this mozilla1.0 This looks like it can give a sizable
perf improvement.
It was marked m1.0 because 93055 was.  I see that Darin moved it up.  

Darin, do you want to see if you can fix up these two callers (92477 and this)
to darin.  This should be changed along with the changes to support partial
Assignee: dougt → darin
is this really a big performance problem?  NS_NewConvertStream returns a input
stream that has a buffer.  therefore, reading one byte at a time is not really
all that costly.

i also don't believe that this change would be blocked by bug 93055.

resolving WONTFIX unless someone can show that this will actually help.  IMO
this is only bloat.
Closed: 18 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.