#7959 NORM 8.2.0 (: gettext translations slows journal's scrolling

Zarro Boogs per Child bugtracker at laptop.org
Thu Aug 14 09:42:37 EDT 2008

#7959: gettext translations slows journal's scrolling
 Reporter:  riccardo       |         Owner:  cjb                 
     Type:  enhancement    |        Status:  new                 
 Priority:  normal         |     Milestone:  8.2.0 (was Update.2)
Component:  performance    |       Version:  not specified       
 Keywords:  blocks?:8.2.0  |   Next_action:  never set           
 Verified:  0              |     Blockedby:                      
 Blocking:                 |  
 Quite a bit of time spent by the journal in the task of scrolling its
 listview goes to translating timestamps for its entries.
 See http://lists.laptop.org/pipermail/devel/2008-August/018028.html.

 This is because the python gettext implementation searches new mo files
 every time a new translations is `requested'.

 I attach a patch that avoids this. I'm not sure it will work in all cases;
 it works without any glitches (I could spot) in french and english.

 Still the python gettext implementation is very slow and spends almost all
 the time for every translation in abspath() and copy().

Ticket URL: <http://dev.laptop.org/ticket/7959>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system

More information about the Bugs mailing list