Closed Bug 1371679 Opened 7 years ago Closed 7 years ago

Use skipDescendantsOnItemRemoval in nsNavHistoryResult

Categories

(Toolkit :: Places, enhancement, P1)

55 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: mak, Assigned: standard8)

References

Details

(Keywords: perf, Whiteboard: [fxsearch])

Attachments

(1 file)

The views basically always care about folders going away, rather than their descendants.
By using skipDescendantsOnItemRemoval, removals handling in bookmark views could become quite faster.
Priority: P2 → P1
I'll take a look at this.
Assignee: nobody → standard8
Blocks: 1382966
Testing with/without this patch and activity stream disabled (in both cases), then when deleting a folder with 613 bookmarks and one empty sub-folder, the time drops from ~487ms to ~408ms

(measured with performance.now() across the PlacesUtils.bookmarks.remove() function on my Mac).
Comment on attachment 8892415 [details]
Bug 1371679 - Use skipDescendantsOnItemRemoval in nsNavHistoryResult to improve performance when deleting bookmark folders.

https://reviewboard.mozilla.org/r/163368/#review168760

I assume you did a Try run, I don't know whether this may break some code assumptions!
Attachment #8892415 - Flags: review?(mak77) → review+
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/409b4345b85a
Use skipDescendantsOnItemRemoval in nsNavHistoryResult to improve performance when deleting bookmark folders. r=mak
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/409b4345b85a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Depends on: 1388043
Backed this out as requested by Standard8:

https://hg.mozilla.org/integration/mozilla-inbound/rev/5057eb5a60e7f2473af9ddbfafd81b6556d367f6
Status: RESOLVED → REOPENED
Flags: needinfo?(standard8)
Resolution: FIXED → ---
Thanks, I'll look at this once I'm back.

For others: this caused regressions - bug 1388043 and bug 1389048, so I've gone for the option of backing out and then we can investigate in more detail.
Flags: needinfo?(standard8)
Target Milestone: mozilla57 → ---
could be due to bug 1316348
Depends on: 1316348
Now that bug 1316348 is fixed I'm going to reland this.

I have just been testing it locally, and in the cases of both the sidebar (bug 1388043) and the bookmarks toolbar (bug 1389048) you can now see everything being cleared down, and then displayed with the new content.

Hence I believe the known issues are now fixed here.
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3eb1b667b3dd
Use skipDescendantsOnItemRemoval in nsNavHistoryResult to improve performance when deleting bookmark folders. r=mak
https://hg.mozilla.org/mozilla-central/rev/3eb1b667b3dd
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: