← Back to team overview

touch-packages team mailing list archive

[Bug 1505731] [NEW] Memory usage and load time of new tab view on mobile is proportional to number of bookmarks

 

Public bug reported:

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 not be hidden, since the
ListView can only create sections when there is at least one item in
that section.

** Affects: canonical-devices-system-image
     Importance: High
     Assignee: Bill Filler (bfiller)
         Status: New

** Affects: webbrowser-app (Ubuntu)
     Importance: Undecided
     Assignee: Ugo Riboni (uriboni)
         Status: New

** Changed in: webbrowser-app (Ubuntu)
     Assignee: (unassigned) => Ugo Riboni (uriboni)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu.
https://bugs.launchpad.net/bugs/1505731

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

Status in Canonical System Image:
  New
Status in webbrowser-app package in Ubuntu:
  New

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 not be hidden, since the
  ListView can only create sections when there is at least one item in
  that section.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1505731/+subscriptions


Follow ups