call sizeTo() on our result arrays before calling AppendObject()

RESOLVED INACTIVE

Status

()

RESOLVED INACTIVE
11 years ago
4 months ago

People

(Reporter: moco, Unassigned)

Tracking

({perf})

Trunk
Points:
2
Bug Flags:
firefox-backlog +
qe-verify ?

Firefox Tracking Flags

(Not tracked)

Details

call sizeTo() on our result arrays before calling AppendObject(), if we can determine the number of results (or even approx number) ahead of time (which we can do with a fast query in some cases for.)

This can help us avoid lots of incremental grows / reallocs.

think about the cases with 10,000 history visits.

some examples:

http://lxr.mozilla.org/seamonkey/source/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp#158

http://lxr.mozilla.org/seamonkey/source/js/src/xpconnect/src/xpcjsruntime.cpp#1039

before we make this change, proving it would be a perf win would be necessary.
could do this anytime there are min/max results specified in queries. might be more generically applicable in the post-query filtering bits.
Keywords: perf
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Blocks: 950073

Updated

5 years ago
Whiteboard: [feature] p=0

Updated

5 years ago
No longer blocks: 950073
Flags: firefox-backlog+
Whiteboard: [feature] p=0 → p=0

Updated

4 years ago
Whiteboard: p=0 → p=2

Updated

4 years ago
Points: --- → 2
Flags: qe-verify?
Whiteboard: p=2

Comment 3

4 months ago
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Last Resolved: 4 months ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.