LabelVisual.isInsideOverlay() performance issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Won't Fix
|
Critical
|
Unassigned |
Bug Description
I ran my app (lp:ureadit) in the QtCreator analyzer and the following code accounted for 30% of the rendering time:
// FIXME: very ugly hack to detect whether the list item is inside a Popover
property bool overlay: isInsideOverlay
function isInsideOverlay
if (!item.parent) return false;
return item.parent.
}
Location Type Time in Percent Total Time Calls Mean Time Median Time Longest Time Shortest Time Details
LabelVisual.qml:27 Binding 8.10 % 125.849 ms 152 827.955 µs 894.083 µs 2.305 ms 466.326 µs property bool overlay: isInsideOverlay
Location Time in Percent Total Time Self Time in Percent Self Time Details
LabelVisual.qml:28 158.82 % 885.349 ms 27.91 % 88.852 ms isInsideOverlay
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in ubuntu-ui-toolkit: | |
milestone: | none → upcoming-15.04 |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → Critical |
status: | New → Confirmed |
no longer affects: | ubuntu-ui-toolkit |
no longer affects: | ubuntu-ui-toolkit |
Will be addressed when the theming feature is fully complete.