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

Zarro Boogs per Child bugtracker at laptop.org
Mon Aug 13 14:26:22 EDT 2007


#2773: Some sugar modules are running code on import causing hard to debug
performance issues
--------------------+-------------------------------------------------------
 Reporter:  J5      |       Owner:  danw     
     Type:  defect  |      Status:  new      
 Priority:  high    |   Milestone:  Untriaged
Component:  sugar   |     Version:           
 Keywords:          |    Verified:  0        
--------------------+-------------------------------------------------------
 Some of the sugar python files run code outside of functions and classes
 which is run every time the module is imported.  This can cause subtle
 performance issues which grow for every import statement.  One should
 identify this code and determine the best way to isolate it by either
 moving the code to a more appropriate place such as in a function or as a
 quick fix, just making sure the code is called on the first import and not
 subsequent imports.

 In reality no code should ever be run in the main body of a module.

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



More information about the Bugs mailing list