Open Bug 203007 Opened 23 years ago Updated 3 years ago

XUL Tree builder should cache sort keys for better performance

Categories

(Core :: XUL, defect)

x86
All
defect

Tracking

()

People

(Reporter: janv, Unassigned)

Details

(Keywords: perf)

Currently we use mCollation->CompareString() CompareString() has to call GetRawSortKeyLen and CreateRawSortKey every time. So we end up with many redundant calls to GetRawSortKeyLen and CreateRawSortKey for the same string. I think we can "pre-cache" these sort keys using an arena and then call CompareRawSortKey directly.
Assignee: Jan.Varga → nobody
QA Contact: shrir → xptoolkit.trees
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.trees → xptoolkit.widgets
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.