Memory usage and load time of new tab view on mobile is proportional to number of bookmarks

Bug #1505731 reported by Ugo Riboni on 2015-10-13
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Medium
Bill Filler
webbrowser-app (Ubuntu)
Medium
Ugo Riboni

Bug Description

In the mobile version of the new tab view, when the "more" button is activated, a view of all the bookmark folders is revealed.
Each bookmark folder is implemented as a Column with a Repeater inside, creating one Loader item for each bookmark in the folder.
Even if most of the Loaders remain inactive they still have a memory and initialization time cost, therefore the memory usage and initialization time of this view raises proportionally to the number of bookmarks in the database.

If the entire view could use instead a single ListView with one section per bookmark, then these costs would be avoided since the ListView maintains only delegates for the items that are visible at the moment.

This would likely require empty folders to be hidden, since the ListView can only create sections when there is at least one item in that section.

Related branches

Ugo Riboni (uriboni) on 2015-10-13
Changed in webbrowser-app (Ubuntu):
assignee: nobody → Ugo Riboni (uriboni)
Bill Filler (bfiller) on 2015-10-13
Changed in canonical-devices-system-image:
milestone: none → ww46-2015
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
Olivier Tilloy (osomon) on 2015-10-13
description: updated
Changed in webbrowser-app (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in canonical-devices-system-image:
status: New → Confirmed
Bill Filler (bfiller) on 2015-10-16
Changed in canonical-devices-system-image:
importance: High → Medium
Ugo Riboni (uriboni) on 2015-10-21
Changed in webbrowser-app (Ubuntu):
status: Triaged → In Progress
Bill Filler (bfiller) on 2015-11-10
Changed in canonical-devices-system-image:
milestone: ww46-2015 → ww02-2016
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
milestone: ww02-2016 → ww08-2016
Bill Filler (bfiller) on 2016-03-15
Changed in canonical-devices-system-image:
milestone: ww08-2016 → backlog
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers