Re: [docbook-apps] gentext.template eats 1/3 of CPU

From
deannelson <>
Date
2010-07-13T19:06:27+00:00
ID
Thread
Re: [docbook-apps] gentext.template eats 1/3 of CPU
Jirka,

 

I get 10-12 % on my projects, but they are below 200 pages. Thanks!

 

Regards,

Dean Nelson

 

 

 

In a message dated 07/13/10 11:18:10 Pacific Daylight Time,  writes:

Stefan Kost wrote: 
> Sam Fischmann wrote: 
>> I, for one, would be interested in seeing a customization layer that 
>> implements some of your patches. Do you think you could provide a link 
>> some time? 
>> 
> http://git.gnome.org/browse/gtk-doc/tree/gtk-doc.xsl 
> 
> check the templates from here on 
> http://git.gnome.org/browse/gtk-doc/tree/gtk-doc.xsl#n59 
> 
> I got the major speedup from hardcoding 'en'. 

Hi folks, 

I have just commited patch that uses xsl:key for accessing localization 
data. Speedup is about ~15% on my machine. You can give it a try. 

http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/xsl/common/l10n.xsl?r1=8001&r2=8719 

           Jirka 

-- 
------------------------------------------------------------------ 
 Jirka Kosek      e-mail:      &nb
 sp;http://xmlguru.cz 
------------------------------------------------------------------ 
      Professional XML consulting and training services 
 DocBook customization, custom XSLT/XSL-FO document processing 
------------------------------------------------------------------ 
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member 
------------------------------------------------------------------