Ubuntu Components is hard on the disk and CPU when loading @gu images

Bug #1664636 reported by Albert Astals Cid
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

 * Take the following simple example of a listview with an image.
 * run it with strace qmlscene
 * scroll the list to the bottom

I understand that some of this overhead is needed since we need to find the best @gu image for the given grid units, but doing it again and again for the same file seems a bit of overkill, maybe we could cache that?

Tags: unity8
Revision history for this message
Albert Astals Cid (aacid) wrote :

QML file to test

Revision history for this message
Albert Astals Cid (aacid) wrote :

PNG file used by the test

Revision history for this message
Albert Astals Cid (aacid) wrote :

strace output, see there's multiple blocks of

stat("/home/tsdgeos/borrame/roundface.png", 0x7ffe56341150) = -1 ENOENT (No such file or directory)
stat("/home/tsdgeos/borrame/roundface@8.png", 0x7ffe563410d0) = -1 ENOENT (No such file or directory)
open("/home/tsdgeos/borrame", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 20
open("/home/tsdgeos/borrame/roundface@2.png", O_RDONLY|O_CLOEXEC) = 20

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Cris Dywan (kalikiana)
tags: added: unity8
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.