Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayBBG-0004wp-Q6 for pgsql-docs@arkaria.postgresql.org; Thu, 05 May 2016 04:46:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ayBBG-0002F1-96 for pgsql-docs@arkaria.postgresql.org; Thu, 05 May 2016 04:46:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ayBAt-0001Ql-JJ for pgsql-docs@postgresql.org; Thu, 05 May 2016 04:46:07 +0000 Received: from mail-lf0-x232.google.com ([2a00:1450:4010:c07::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ayBAq-00023v-4Z for pgsql-docs@postgresql.org; Thu, 05 May 2016 04:46:06 +0000 Received: by mail-lf0-x232.google.com with SMTP id y84so83748028lfc.0 for ; Wed, 04 May 2016 21:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=326aGnhPa1lR0aF+Lc5McKl7b6JKPRYTiDOweHFubU8=; b=TLCwHA2DJ1LfAPUVHIxGYvMt5w0hUtcnwy251aBqOrUrhXNB3UcRgvstthPmnqSxnZ 6a3PvadNqT99AgJw6K5FRUdKwJu3QpJE/NvQhasRhbd3sZ5nEqJnONWxfdxgeA/73oxC QcL5jHDpbF55wkXc7VYR+QhZAhKG+/kgi3heqoXxxDcL4Qd3fU6ysEyIAmJOMVbhsusI M1tKIDVb6KZXmrAAV9zAZDXplsEW+Sx6vWBSDylWHjQqbxtVhFPHBwqWFtbhRHV4DOLB u0Cjc9p9XobGyTlYyXauHWRiUyjGiPeTom9Lbkcsz5oRtxGwznP8oJBA5NGWUTAZ9/AF wSNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=326aGnhPa1lR0aF+Lc5McKl7b6JKPRYTiDOweHFubU8=; b=mNp8P40vVjoi5eIaVFMOLBJql1nPyD8OZOPzP3gZaWgigR3YkFJ70KmHfjBCuDkIL6 dc8vsqZDP9FPYX7hVPS1wK205HmUr8HiC2kHr76U+eqJTBVsW0q9Ip5FIJgFqJqGGOtv OVtDFRjUy7N4FCML7Rl/l4p8iynAcAXJCJyoxYX9SYr5ZU4ixqVNRsQunMG9ESztnVwt Y1qOvcBi1s11lmL80LPO3/MpIB9gyCXs6cNPNCF249MSRrMaGoh0VvFrydq4ESrqUB8I 7Q42OJWjPYO0PQnGMqFs8LfRLqRsXzyPEz8xwVTAWHYln02NjzuIefiFASapAuw6U7Bj wKeQ== X-Gm-Message-State: AOPr4FUSme2pwJh33RHgpLmLElstlIFu4tuys5d1+HLmLXJGisz5pcsUcQ788lchVykIAQ== X-Received: by 10.25.150.207 with SMTP id y198mr5997363lfd.76.1462423562350; Wed, 04 May 2016 21:46:02 -0700 (PDT) Received: from [1.0.0.7] ([109.196.196.224]) by smtp.gmail.com with ESMTPSA id z1sm1159657lbw.2.2016.05.04.21.46.00 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2016 21:46:01 -0700 (PDT) Subject: Re: Docbook 5.x To: Peter Eisentraut , obartunov@gmail.com, Alvaro Herrera , Alexander Lakhin References: <57179283.6080704@purtz.de> <20160503193441.GA61759@alvherre.pgsql> Cc: =?UTF-8?Q?J=c3=bcrgen_Purtz?= , pgsql-docs@postgresql.org From: Alexander Law Message-ID: <572AD007.60900@gmail.com> Date: Thu, 5 May 2016 07:45:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------050901040906050602000201" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------050901040906050602000201 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. > --------------050901040906050602000201 Content-Type: text/x-patch; name="xslt-speedup.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xslt-speedup.patch" diff --git a/doc/src/sgml/stylesheet-xhtml-speedup.xsl b/doc/src/sgml/style= sheet-xhtml-speedup.xsl new file mode 100644 index 0000000..d52b48e --- /dev/null +++ b/doc/src/sgml/stylesheet-xhtml-speedup.xsl @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + diff --git a/doc/src/sgml/stylesheet.xsl b/doc/src/sgml/stylesheet.xsl index 7967b36..8b01f41 100644 --- a/doc/src/sgml/stylesheet.xsl +++ b/doc/src/sgml/stylesheet.xsl @@ -6,6 +6,7 @@ =20 + =20 =20 --------------050901040906050602000201 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------050901040906050602000201--