Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHSOJ-0005vL-OJ for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Dec 2016 09:31:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cHSOJ-0005Hr-6R for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Dec 2016 09:31:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cHSMr-0003c1-Lj for pgsql-hackers@postgresql.org; Thu, 15 Dec 2016 09:30:25 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cHSMn-0000vr-Ly for pgsql-hackers@postgresql.org; Thu, 15 Dec 2016 09:30:24 +0000 Received: by mail-wm0-x235.google.com with SMTP id g23so154411653wme.1 for ; Thu, 15 Dec 2016 01:30:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=eNOM6fwDpiWr11CRaHzZRNwPfbH6Vs+MfdYDrBYXAQs=; b=CIznrrOdMjX5DRYh0hDKtnRP67liRD67WsDq2Bw7lma6p3+/1m/U2aMAznQa6r4RHI Zyt9yHOalaGjdfUQog0F+m95n0wvIhUuivFJB4Tl7cX0Im5MFaYJMwi3+halz2VjG9Z9 MAXZzJKzvt0/2iV0FsJwZ689vWVln2XTIrJbXskH9pYm0nkfQUS6hh3/9UzmjGD8Uzpu VtNPSgSFOeNMxNUNEg7SE8xrm+dRB9nSDFLROnzPo6yzYl2DXS4kqeJlyWkO0hO9Fz+c wJn3sJVP+9bKxKp5qv0vtzrSM7+4vIkKJTxBBPtoM7Ph641Q1FXOphkALvi9gHojHlpy ZNbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=eNOM6fwDpiWr11CRaHzZRNwPfbH6Vs+MfdYDrBYXAQs=; b=KLpb9aD49PtVVt3xa9O26atQffADSYcoDsPWXLt2uESplejmjYP4k7kJWDrCPYAGdX trRLQTPhAAMp2Wv9LNT/pupPnkesYP4s+e5f7w0B7vEs81XubZextxFKj1zZwfUrMnHD WVobgG2qHXub1w3bUJ4dH/MbpbwMqasWvKcAV3BawCeS9cJ9rMV9bou/nWhNmcb5piLt 88V2Bj6BPMH7cupomHsiPPW7z10/XjJ0zbNaiS0flmajn831MEps0Nuqb0QYyomhgMNs WRRC/IeYoKfnj4k+rcd4SVZdL2m8KC+XzOKdAUAahH4g0F1GYg9MCNO6k6tTdiLH7S5w nABg== X-Gm-Message-State: AKaTC03vJATyWyp58RJFoTAmk/fsyqV9kV6d2VMARhmvyMujMndpP8fYqaV7I0lQ7pJsIg== X-Received: by 10.25.170.198 with SMTP id t189mr122078lfe.129.1481794220103; Thu, 15 Dec 2016 01:30:20 -0800 (PST) Received: from [1.0.0.7] ([109.196.196.23]) by smtp.gmail.com with ESMTPSA id f25sm261293lji.47.2016.12.15.01.30.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2016 01:30:19 -0800 (PST) Subject: Re: [COMMITTERS] pgsql: Build HTML documentation using XSLT stylesheets by default To: Alvaro Herrera , Pavel Stehule References: <20161201164925.poqw4zrnlbj5ex7a@alvherre.pgsql> Cc: Tom Lane , Peter Eisentraut , PostgreSQL Hackers From: Alexander Law Message-ID: Date: Thu, 15 Dec 2016 12:30:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161201164925.poqw4zrnlbj5ex7a@alvherre.pgsql> Content-Type: multipart/mixed; boundary="------------1ACC0FB5A06026D6DD64351C" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org This is a multi-part message in MIME format. --------------1ACC0FB5A06026D6DD64351C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello Alvaro, It's caused by the condition ... in the simple.xlink template (docbook/stylesheet/docbook-xsl/xhtml/inline.xsl). (This test executed for each xlink (~ 90000 times)). Yes, it's inefficient but it doesn't affect build time (for me). You can try to apply the attached patch and measure the time with it. So If the performance is rather acceptable now I'd continue switch to XML, and get back to the performance issues after the switch. (epub generation is much more slow, and I have developed a patch to speed up it too.) Best regards, Alexander 01.12.2016 19:49, Alvaro Herrera wrote: > Pavel Stehule wrote: > >> It does much more intensive work with IO - I have feeling like there are >> intensive fsync. > You could prove that, by running "make html" under "strace -f -e > trace=fsync" etc. I just tried that, and I don't see any fsync. I > guess you could try other syscalls, or simply "-e trace=file". Doing > the latter I noticed an absolutely stupid number of attempts to open > file > /usr/lib/libxslt-plugins/nwalsh_com_xslt_ext_com_nwalsh_saxon_UnwrapLinks.so > which deserves a WTF. > --------------1ACC0FB5A06026D6DD64351C Content-Type: text/x-patch; name="make-html-wo-nwalsh-search.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="make-html-wo-nwalsh-search.patch" diff --git a/doc/src/sgml/stylesheet-speedup-xhtml.xsl b/doc/src/sgml/stylesheet-speedup-xhtml.xsl index ff08bef..60c9fd4 100644 --- a/doc/src/sgml/stylesheet-speedup-xhtml.xsl +++ b/doc/src/sgml/stylesheet-speedup-xhtml.xsl @@ -1,5 +1,6 @@ @@ -292,4 +293,189 @@ + + + + + + + + + + + + + + _blank + _top + + + + + + + + + + + + + + 1 + 0 + + + + + + + + + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + XLink to nonexistent id: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --------------1ACC0FB5A06026D6DD64351C Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --------------1ACC0FB5A06026D6DD64351C--