Closed Bug 129374 Opened 23 years ago Closed 14 years ago

[perf] we should cached the read buffer in nsStreamConverter and QuotingOutputStreamListener

Categories

(MailNews Core :: Composition, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: bugzilla, Unassigned)

References

Details

(Keywords: perf, Whiteboard: [need info])

everytime we process a block in data during the quoting part of reply, we
allocate a buffer, and then destroy it. I would be more efficient to try to
reuse the same buffer.
same problem occurs in mime nsStreamConverter::OnDataAvailable. Would be very
nice if we could fix this two case and check if we don't have more...
Status: NEW → ASSIGNED
Keywords: nsbeta1, perf
Summary: [perf] we should cached the read buffer in QuotingOutputStreamListener::OnDataAvailable → [perf] we should cached the read buffer in nsStreamConverter and QuotingOutputStreamListener
Target Milestone: --- → mozilla1.0
OS: Windows 2000 → All
QA Contact: sheelar → stephend
How big is a block?  What kind of performance improvement would you expect to
see in reply and message display?
Whiteboard: [need info]
I need to figure out the max size of a block but it should be somewhere between
4K and 32K. The speed improvement will be noticable only on low-end
configuration (slow CPU/low memory) with large message. That will affect message
display, attachment saving and reply (twice for reply). I don't have numbers but
the fix is very simple to do.
Discussed in Mail News bug mtg w Engineering Mktng PjM.  Decided to plus the
bug.  Making P2 also.
Keywords: nsbeta1nsbeta1+
Priority: -- → P2
Discussed in Mail News with Mktng, QA, Engineering and PjM.  Decided to minus
this bug.
Blocks: 122274
Keywords: nsbeta1+nsbeta1-
Target Milestone: mozilla1.0 → mozilla1.2
Product: MailNews → Core
Assignee: ducarroz → nobody
Status: ASSIGNED → NEW
QA Contact: stephend → composition
Product: Core → MailNews Core
(In reply to comment #3)
> I need to figure out the max size of a block but it should be somewhere between
> 4K and 32K. The speed improvement will be noticable only on low-end
> configuration (slow CPU/low memory) with large message. That will affect message
> display, attachment saving and reply (twice for reply). I don't have numbers but
> the fix is very simple to do.

bienvenu feels this isn't worth keeping. If someone feels differently, please reopen (as ENH) with details - or a patch! :)
Severity: normal → enhancement
Status: NEW → RESOLVED
Closed: 14 years ago
Priority: P2 → --
Resolution: --- → WONTFIX
Target Milestone: mozilla1.2alpha → ---
You need to log in before you can comment on or make changes to this bug.