Open Bug 115160 Opened 23 years ago Updated 7 months ago

[mozTXTToHTMLConv] Optimize to speed up message display of messages with lots of links

Categories

(MailNews Core :: Backend, defect)

defect

Tracking

(Not tracked)

People

(Reporter: Bienvenu, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf, testcase, Whiteboard: [need to evaluate perf win])

Attachments

(2 files)

If you display a message with lots of links, MoxTxtToHTMLConv.cpp slows us down a lot, copies data around excessively, allocates memory when it doesn't need to, etc. I have a 440K spam message that takes several seconds to display, bloats memory by 17MB or so, and leaks a lot of memory as well. So I'm going to try to optimize this file to see if that fixes some of the bloat.
Blocks: 22960
Keywords: nsbeta1, perf
QA Contact: esther → stephend
Status: NEW → ASSIGNED
Keywords: nsbeta1nsbeta1+
Priority: -- → P1
Target Milestone: --- → mozilla0.9.8
Thanks for tuning the class. Please make sure that you don't change the logic (intentionally or accidentally). For the record: I take no responsibility for leaks introduced by char*s - that wasn't me.
OS: Windows 2000 → All
Hardware: PC → All
Some test cases would help.
Here you are: bug 116842.
Blocks: 116842
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Priority: P1 → P2
Target Milestone: mozilla0.9.9 → mozilla1.0
I don't see how this is going to happen at this point - recommend nsbeta1-
Attached patch streamconv diffsSplinter Review
this is for posterity since I've given up on getting this in to 1.0, and hopefully we'll rewrite this all later.
mime part of diffs. The attached patches all work and avoid memory allocations in most cases - clients that used pass in unicode now convert the data to utf8 (though usually they started with utf8 with they 0 byte extended to unicode...) I haven't attached the address book diffs - address book has started using ScanTxt and I just got tired of all the conflicts
Blocks: 122274
Keywords: nsbeta1+nsbeta1-
Target Milestone: mozilla1.0 → mozilla1.2
Product: MailNews → Core
QA Contact: stephend → backend
Product: Core → MailNews Core
I have no idea how much this would cost engineering wise - but would be nice to have I think for the users experience.
Flags: wanted-thunderbird3?
Perhaps target milestone should be updated? (Mozilla 1.2 Alpha seems ancient, just like some other js bugs currently out there. ;-) )
Target Milestone: mozilla1.2alpha → ---
Summary: MozTxtToHTMLConv.cpp can be optimized to speed up message display of messages with lots of links → [mozTXTToHTMLConv] Optimize to speed up message display of messages with lots of links
David any idea how much this would cost time wise to land ?
Flags: wanted-thunderbird3?
(In reply to comment #11) > David any idea how much this would cost time wise to land ? It all needs to be looked at again - the string api's have changed, and the patch has bit-rotted quite a bit. Plus, we really should have some idea of how much of a performance win this would be, so we can consider the risk-reward.
Blocks: 548982
Assignee: mozilla → nobody
Status: ASSIGNED → NEW
Priority: P2 → --
Whiteboard: [need to evaluate perf win]
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
Severity: normal → S3
Blocks: 1661076
Duplicate of this bug: 1661076
Keywords: testcase
No longer duplicate of this bug: 1661076
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: