#5538 HIGH Update.: Every python activity emits errors when starting.

Zarro Boogs per Child bugtracker at laptop.org
Wed Dec 19 05:42:49 EST 2007


#5538: Every python activity emits errors when starting.
---------------------+------------------------------------------------------
  Reporter:  cscott  |       Owner:  marco   
      Type:  defect  |      Status:  new     
  Priority:  high    |   Milestone:  Update.1
 Component:  sugar   |     Version:          
Resolution:          |    Keywords:  review? 
  Verified:  0       |  
---------------------+------------------------------------------------------
Changes (by tomeu):

 * cc: tomeu (added)


Comment:

 In my opinion, each import taken from the top and moved into an inner
 scope makes the code a bit less maintainable.

 Do you have measures of user-perceived performance improvement given by
 that?

 Although the right fix would be to change code to do things more lazily
 instead of doing those in the module scope, I'm not opposed to move
 imports in the short term if doing so really improves performance.

 I guess you know that measuring how much time individual modules take to
 be imported is tricky. If you make "from sugar.activity import activity"
 take 1 sec less, that doesn't mean activity startup will be 1 sec faster,
 as that operation won't take the same amount of time if executed in a
 clean python process as inside the activity launch context.

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



More information about the Bugs mailing list