Closed Bug 399930 Opened 16 years ago Closed 16 years ago

Optimize PlacesUtils getters

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 beta1

People

(Reporter: asaf, Assigned: asaf)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

Attached patch tentative patch (obsolete) — Splinter Review
I would like to attempt reducing PlacesUtils performance overhead by addressing the issues raised in bug 385809 and bug 389368 (Hey Myk!).
Attachment #285022 - Flags: review?(mconnor)
Comment on attachment 285022 [details] [diff] [review]
tentative patch

looks good, let's get this on tinderbox while its quiet to see what it does
Attachment #285022 - Flags: review?(mconnor)
Attachment #285022 - Flags: review+
Attachment #285022 - Flags: approval1.9+
mozilla/browser/components/places/content/utils.js 1.72
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
No longer depends on: 399473
Did this have any effect on performance metrics? If not, I think we should back it out (the removal of function names at least).
Both Ts and Txul were too noisy at the time of landing so dunno :( (I could claim 10ms Ts win and 10ms Txul hit...).

Having said that, these labels are not proven to be useful, esp. given the current state of Venkman.
(In reply to comment #4)
> Both Ts and Txul were too noisy at the time of landing so dunno :( (I could
> claim 10ms Ts win and 10ms Txul hit...).
> 
> Having said that, these labels are not proven to be useful, esp. given the
> current state of Venkman.
> 

I'd prefer to have them. I've been using Venkman to profile bug 384370, and having "13ms anonymous" is not helpful at all.
that said, if you test again, and there's a measurable perf improvement from removing them then i'll settle for "anonymous" ;)
backed-out due to tree state:
Checking in browser/components/places/content/utils.js;
/cvsroot/mozilla/browser/components/places/content/utils.js,v  <--  utils.js
new revision: 1.73; previous revision: 1.72
done
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Optimize PlacesUtils → Optimize PlacesUtils getters
Attached patch v1.1Splinter Review
Don't remove function labels for now.

Checking in browser/components/places/content/utils.js;
/cvsroot/mozilla/browser/components/places/content/utils.js,v  <--  utils.js
new revision: 1.74; previous revision: 1.73
done
Attachment #285022 - Attachment is obsolete: true
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
OS: Mac OS X → All
Hardware: PC → All
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
You need to log in before you can comment on or make changes to this bug.