Closed
Bug 67234
Opened 25 years ago
Closed 25 years ago
perf: make GetTarget() of "<foo>Date?sort=true" return the same target as "<foo>Date"
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sspitzer, Assigned: sspitzer)
Details
(Keywords: perf)
Attachments
(1 file)
|
3.89 KB,
patch
|
Details | Diff | Splinter Review |
date is our common secondary sort.
the way the xul sort service is written, we'll ask for Date?collation=true, then
Date?sort=true, and then Date.
this trick makes is a tiny bit faster, taking us from three GetTarget() calls to
two. the big win is making the successful call to GetTarget() faster.
I did this a while ago. here comes the patch.
ideally, we could make the sort service smarter to know that if ?collation=true
fails for one GetTarget() it will fail for them all.
I'll log a bug to track that.
| Assignee | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
sr=bienvenu
| Assignee | ||
Comment 3•25 years ago
|
||
fixed. minor performance gain, but I had it in my tree anyways...
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Keywords: perf
QA Contact: esther → stephend
Note to self: post results of date sorting on the 3 major platforms here.
| Assignee | ||
Comment 5•25 years ago
|
||
this would affect all the sorts. date sort obviously exercises this
optimization, but all the other sorts do too, since date is a secondary sort on
all the other sorts.
note, it will be a very small optimization, probably not noticable on a machine
with very little memory.
And it wasn't noticeable, unfortunately. But at least sort isn't broken,
marking VERIFIED. The results are listed on http://www.mozilla.org/mailnews/
under Quality Assurance.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: MailNews → Core
Updated•18 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•