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

Bug #1505731 reported by Ugo Riboni
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
In Progress
Medium
Bill Filler
webbrowser-app (Ubuntu)
In Progress
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)
Changed in webbrowser-app (Ubuntu):
assignee: nobody → Ugo Riboni (uriboni)
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: none → ww46-2015
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
Olivier Tilloy (osomon)
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)
Changed in canonical-devices-system-image:
importance: High → Medium
Ugo Riboni (uriboni)
Changed in webbrowser-app (Ubuntu):
status: Triaged → In Progress
Bill Filler (bfiller)
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)
Changed in canonical-devices-system-image:
milestone: ww08-2016 → backlog
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.