Re: The fast version of gtk-doc.xsl
- From: Callum McKenzie <callum physics otago ac nz>
- To: gtk-doc-list gnome org
- Subject: Re: The fast version of gtk-doc.xsl
- Date: Tue, 06 Jan 2004 10:27:59 +1300
I have to agree with Shaun about optimising xsl. The reason I persevered
with my own stylesheets rather than optimising Norm Walsh's (or even
just dropping in the yelp ones) was as an educational process for me.
The sort of slow-down that I see in Norm's stylesheets looks to me like
a bad design issue. The xml I was using for a test could be scanned by
xsltproc in a fraction of a second for one pass, Norm's stylesheets took
about a minute. I would guess that somewhere in Norm's stylesheets some
template that is applied to most of the nodes is then calling another
template that walks most of the nodes. i.e. it is an algorithmic
problem, O(n^2) rather than O(n), as opposed to a localised optimisation
problem.
The fact that they are so big is irrelevant in terms of processing time,
but it is a problem in terms of trying to understand them and see if
this really is the problem.
In hindsight I should have tried using the yelp stylesheets, they're
fast and pretty (mine are just fast).
- Callum
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]