Re: Docbook 5.x - Mailing list pgsql-docs

From Alexander Law
Subject Re: Docbook 5.x
Date
Msg-id 572AD007.60900@gmail.com
Whole thread Raw
In response to Re: Docbook 5.x  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: Docbook 5.x  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-docs
Done (previous patch cleaned).
This patch optimizes XSL transformations contained in docbook-xsl (1.78.1).

Tested with 9.5.2
time make html
real    1m21.989s
user    1m21.392s
sys     0m0.484s

1) time make xslthtml
(before the patch)
real    29m19.904s
user    29m18.804s
sys     0m0.888s

2) time make xslthtml
(after the patch)
real    3m8.483s
user    3m7.556s
sys     0m0.864s

To make sure that the result of the transformation is the same:
After 1):
mv html html.xslt1
After 2):
mv html html.xslt2
for f in *.xslt*/*.html; do sed -e
's/id=\"\(ftn\.\)\?id[a-z][0-9]\+\"/id=\"id\"/g' -i $f ; sed -e
's/href=\"[^#]*#\(ftn\.\)\?id[a-z][0-9]\+\"/href=\"#\"/g' -i $f; done
diff -u -r html.xslt1 html.xslt2

Best regards,
Alexander


04.05.2016 03:44, Peter Eisentraut пишет:
> On 5/3/16 4:13 PM, Oleg Bartunov wrote:
>> As it stated in
>> http://www.postgresql.org/message-id/562E061B.1090809@postgrespro.ru
>> the xml performance may be greatly improved. Alexander, what is current
>> state of art of your patch ? How slow is xml in compare to sgml ?
>
> Please make sure the patch is registered in the next commit fest.
>


Attachment

pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Docbook 5.x
Next
From: Alexander Law
Date:
Subject: Re: Docbook 5.x