#2773 HIGH Trial-3: Some sugar modules are running code on import causing hard to debug performance issues

Zarro Boogs per Child bugtracker at laptop.org
Tue Aug 14 07:59:27 EDT 2007


#2773: Some sugar modules are running code on import causing hard to debug
performance issues
---------------------+------------------------------------------------------
  Reporter:  J5      |       Owner:  tomeu  
      Type:  defect  |      Status:  new    
  Priority:  high    |   Milestone:  Trial-3
 Component:  sugar   |     Version:         
Resolution:          |    Keywords:  review+
  Verified:  0       |  
---------------------+------------------------------------------------------
Comment (by marco):

 Replying to [comment:6 tomeu]:
 > Don't know if this is what J5 meant to say, but in my opinion doing
 expensive things on the module scope is bad because we are delaying start
 time and, in some cases, increasing memory usage for things that perhaps
 we are not going to use.

 I certainly agree about that. And now I see that might be what J5 actually
 meant to say. Also I agree with danw that dbus_helpers.py is the only real
 offender. So it sounds good, let's land Dan patch and close this one.

 (I'd like to see the dbus_helpers stuff moved to be private and the
 connection issues you mentioned solved at some point, but that's a
 different issue).

-- 
Ticket URL: <https://dev.laptop.org/ticket/2773#comment:8>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list