25.11.2017 11:03, Thomas Munro wrote:
Hmm. Well, this is all new to me but I'd have expected the numbers in
the "Calls" column to be entirely deterministic.
I think, calls are depending on the XSL templates and it seems we have
different templates.
(I couldn't find 'd:appendix' in my docbook-xsl installation, that's why
I asked about version number.)
Maybe it's another case then, your version is new.
Now I see 'd:appendix' appeared in
https://github.com/docbook/xslt10-stylesheets/blob/master/xsl/html/chunktoc.xsl
Perhaps that
business about conditional use of UnwrapLinks and other things like it
change the numbers. It's interesting that "gentext.template" is in
the same ballpark on our two systems in terms of calls and CPU time,
but the top templates are massive outliers on my system. I have no
idea what I'm even looking at really but I couldn't help noticing that
templates with match="chapter" and match="appendix" appear in our tree
in sgml/stylesheet-speedup-common.xsl with a comment
"Performance-optimized versions of some upstream templates from
common/ directory". Could it be that whatever performance-enhancing
trick they perform doesn't work on 1.1.32, or alternatively they are
not being reached so we're falling back to non-optimised versions
instead of these?
I wonder, what version of docbook-xsl are you using?
(I have 1.79.1+dfsg-1).
Can you check with 1.79+ (if yours is older)?
docbook-xsl version 1.79.2_1.
I'll try to install 1.79.2 version and check the performance on my side.
------
Alexander Lakhin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company