#4680 NORM Future : Sugar apps' pygtk main loop polls 10 times a second, always

Zarro Boogs per Child bugtracker at laptop.org
Sun Aug 10 00:20:55 EDT 2008


#4680: Sugar apps' pygtk main loop polls 10 times a second, always
-------------------------+--------------------------------------------------
   Reporter:  gnu        |       Owner:  marco             
       Type:  defect     |      Status:  new               
   Priority:  normal     |   Milestone:  Future Release    
  Component:  sugar      |     Version:  Build 623         
 Resolution:             |    Keywords:  power, performance
Next_action:  never set  |    Verified:  0                 
  Blockedby:             |    Blocking:                    
-------------------------+--------------------------------------------------
Changes (by gnu):

  * next_action:  => never set


Comment:

 In joyride-2263, this is only slightly improved.  Here's why:

 Python-2.5.1 was patched in F9 to add the patch from Python Issue 1583.
 But the F9 maintainer installed Guido's last posted patch, rather than his
 final SVN changes.  Those final changes added a C api that, it turns out,
 is the interface that pygobject and PyGTK use.  So gobject and gtk don't
 know the feature is there yet.

 PyGobject is probably OK once it gets recompiled in an environment with
 the better-patched Python.  Meanwhile, it now polls once a second rather
 than 10x a second, until it sees the new Python interface, so at least we
 have that improvement.

 PyGTK, however, still apparently has some issues; its signal handling has
 to deal with both the case of a Python interpreter with the feature, and
 one without it, and there have been some bugs in their first try.  See:

   http://bugzilla.gnome.org/show_bug.cgi?id=481569

 So we can't close this OLPC bug yet.  If F10 straightens out Python, and
 Gnome straightens out PyGTK, then we should pull in those changes for the
 following release.

-- 
Ticket URL: <http://dev.laptop.org/ticket/4680#comment:13>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list