[Bugs] #1656 UNSP: logging is slow

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Feb 11 01:05:11 EST 2010


#1656: logging is slow
------------------------------------------+---------------------------------
    Reporter:  quozl                      |          Owner:  tomeu                      
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  0.84.x                     
    Severity:  Unspecified                |       Keywords:  r!                         
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by quozl):

 Adding an ''import gconf'' to a program that does not already do this
 costs an extra 165ms on XO-1.5 hardware.

 Adding a gconf key lookup costs 25ms (plus or minus 2ms) extra startup
 time on XO-1.5 hardware.

 These are an unacceptable burden on every activity startup, multiplied by
 3 million children.

 An alternate implementation uses environment variables.  This
 implementation costs under 2ms on XO-1.5 hardware.

 The variable name SUGAR_LOGS_SYNC was chosen to fit the other environment
 variables already associated with logging.  (SUGAR_LOGGER_LEVEL and
 SUGAR_LOGS_DIR).

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1656#comment:8>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list