Yelp Speedup



Hi list,

I was looking at speeding yelp up a bit for docbook parsing and
discovered the bottleneck is related to gettext.xsl [1]

Yelp seems to be opening and reading its content 215 times for the user
guide!

I looked through the stylesheets from gnome-doc-utils and noticed it is
imported 4 times in different files:
1: html/db2html.xsl
2: common/db-label.xsl
3: common/db-title.xsl
4: common/db-xref.xsl

Removing the <xsl:import href="../../gettext/gettext.xsl"> commands from
the files in common improves Yelps parsing ability by an order of
magnitude
(Stopwatch timings from clicking the Relevant document in the TOC):
User guide
Before: ~ 57s
After: ~ 3s

Gnumeric
Before: ~ 1m 2s
After: ~ 4s

Zenity
Before: ~3s
After: < 1s

A little bit of an improvement there ;)  So, my question is this:
Is it possible to remove these import statements and get this speed
boost?  Do other packages depend on gnome-doc-utils that this will
affect?

Cheers
Don

[1] http://bugzilla.ubuntu.com/show_bug.cgi?id=17156




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]