Speeding up yelp

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Speeding up yelp

Robert Stoffers
>From the Gnome-doc list:


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
--
Robert Stoffers
Author/Maintainer - Ubuntu Starter Guide
Ubuntu Documentation Team



--
ubuntu-doc mailing list
[hidden email]
http://lists.ubuntu.com/mailman/listinfo/ubuntu-doc
Reply | Threaded
Open this post in threaded view
|

Re: Speeding up yelp

Don Scorgie
Hi,

Along the same lines as this, a patch was recently uploaded into GNOME CVS
that should improve yelp performance even further.  The user guide now
loads in ~ 1 second on my computer.

Just thought you'd all like to know this
Don




--
ubuntu-doc mailing list
[hidden email]
http://lists.ubuntu.com/mailman/listinfo/ubuntu-doc