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)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: sspitzer, Assigned: sspitzer)

Details

(Keywords: perf)

Attachments

(1 file)

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.
sr=bienvenu
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.
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
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: