Closed
Bug 219552
Opened 21 years ago
Closed 21 years ago
Improve performance of RowCellColumnToCollationKey
Categories
(MailNews Core :: Database, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
Details
(Keywords: perf)
Attachments
(2 files)
3.52 KB,
patch
|
Bienvenu
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
646 bytes,
patch
|
Bienvenu
:
review+
bzbarsky
:
superreview+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
I was doing some basic performance testing on sorting 10000+ messages by subject
(because that's how I read bugmail) and have in the past improved performance in
intl by optimizing AllocateRawSortKey but now I'm turning my attention further
up the chain :-) By inlining the code in RowCellColumnToCollationKey I was able
to avoid some steps and pass an nsAString directly to AllocateRawSortKey. This
appeared to speed up sorting by about 10%.
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #131661 -
Flags: superreview?(scott)
Attachment #131661 -
Flags: review?(bienvenu)
Updated•21 years ago
|
Attachment #131661 -
Flags: review?(bienvenu) → review+
Updated•21 years ago
|
Attachment #131661 -
Flags: superreview?(scott) → superreview+
Assignee | ||
Comment 3•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•21 years ago
|
||
What was happening for an empty subject was that ...ToMime2DecodedString just
returned early, and an empty collation key was created. Now when I inlined
...ToMime2DecodedString I copied the early return, unfortunately this means
that no collation key is created, therefore crash.
The fix is to copy code from ...ToAddressCollationKey which passes the string
to DecodeMimeHeader which will return early for an empty string anyway.
Assignee | ||
Updated•21 years ago
|
Attachment #132166 -
Flags: review?(bienvenu)
![]() |
||
Comment 5•21 years ago
|
||
Comment on attachment 132166 [details] [diff] [review]
Fix null subject crash
sr=bzbarsky
Attachment #132166 -
Flags: superreview+
Comment 6•21 years ago
|
||
Comment on attachment 132166 [details] [diff] [review]
Fix null subject crash
r/sr=me
Attachment #132166 -
Flags: review?(bienvenu) → review+
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•