Closed
Bug 1392267
Opened 7 years ago
Closed 7 years ago
Bookmark onItemChanged triggers unnecessary fetching from the places database
Categories
(Firefox :: New Tab Page, enhancement)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
Firefox 57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Keywords: perf)
When profiling bulk actions for Places Bookmarks, we're seeing that Activity Stream is showing up in the data quite a bit. One instance is for every onItemChanged, Activity Stream is performing a fetch to the database. http://searchfox.org/mozilla-central/rev/b258e6864ee3e809d40982bc5d0d5aff66a20780/browser/extensions/activity-stream/lib/PlacesFeed.jsm#129 http://searchfox.org/mozilla-central/rev/b258e6864ee3e809d40982bc5d0d5aff66a20780/toolkit/modules/NewTabUtils.jsm#1029 From what I can tell, PLACES_BOOKMARK_CHANGED isn't listened to/used by the content process, so at the moment, this is unnecessary code that's impacting our performance. If it is going to be used, then we should see if we can avoid the fetch - for example, we could only communicate the changes to the content process.
Assignee | ||
Comment 1•7 years ago
|
||
Kate, should be clearing out the onItemChanged listener here, or is it likely to be used for something?
Flags: needinfo?(khudson)
Comment 2•7 years ago
|
||
It'll be needed to implement highlights https://github.com/mozilla/activity-stream/issues/3147 Although that is blocked on implementing metadata fetching and storage, so it might be dropped from 57. In the meantime it would seem like this code could be removed or skipped.
Updated•7 years ago
|
Updated•7 years ago
|
Summary: Activity Stream performs unnecessary fetching from the places database and dispatching when receiving onItemChanged notifications → Bookmark onItemChanged triggers unnecessary fetching from the places database
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(khudson)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → standard8
Comment 3•7 years ago
|
||
Fixed by https://github.com/mozilla/activity-stream/pull/3322 to be uplifted via bug 1395642.
Updated•7 years ago
|
status-firefox57:
--- → fixed
Target Milestone: --- → Firefox 57
Updated•5 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•