Closed
Bug 1690495
Opened 3 years ago
Closed 3 years ago
Avoid updating the bookmarks toolbar multiple times when removing bookmarks
Categories
(Firefox :: Bookmarks & History, defect, P3)
Firefox
Bookmarks & History
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: standard8, Assigned: daisuke)
References
(Blocks 1 open bug)
Details
(Keywords: perf)
Attachments
(1 file)
Batching of bookmark remove notifications is being added in bug 1607245.
I noticed that BookmarkingUI.handlePlacesEvents
will not be very efficient. This is an existing issue, but we can resolve it now due to the added batching:
We should use a flag for the this.maybeShowOtherBookmarksFolder();
call and only execute once after the loop.
Likewise this.updateEmptyToolbarMessage()
should only be executed after the loop.
These are both functions which potentially end up with us executing SQL.
I don't think it is worth splitting out the this._updateStar();
that should only be called once per batch.
Whilst here we could also clean up this code to only happen in the following if statement when we're building the bookmarks button:
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Iteration: --- → 87.2 - Feb 8 - Feb 21
Points: --- → 2
Assignee | ||
Comment 1•3 years ago
|
||
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7aebb6b02c84 Make bookmarks toolbar to batch update when addition/removal. r=Standard8
Comment 3•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox87:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•