[Bugs] #756 HIGH: shell consumes lots of cpu on XO
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Thu Apr 16 06:03:59 EDT 2009
#756: shell consumes lots of cpu on XO
----------------------------+-----------------------------------------------
Reporter: tomeu | Owner: erikos
Type: defect | Status: assigned
Priority: High | Milestone: 0.84
Component: sugar | Version: Git as of bugdate
Severity: Blocker | Resolution:
Keywords: | Distribution: Unspecified
Status_field: Unconfirmed |
----------------------------+-----------------------------------------------
Changes (by tomeu):
* owner: tomeu => erikos
* status: new => assigned
* severity: Major => Blocker
Comment:
Replying to [comment:1 tomeu]:
>
> But it's still doing too much work. I guess it's updating widgets even
when nothing changed.
Confirmed, we should apply the patch above for 0.84 and make sure for 0.86
that nothing expensive is done when nothing changes. One idea is to wrap
all instance variables that influence the UI in methods such as:
{{{
def _set_X(self, new_X):
if self._X == new_X:
return
self._X = new_X
[update UI]
}}}
--
Ticket URL: <http://dev.sugarlabs.org/ticket/756#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list