Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIVS0-0004pb-Kt for pgsql-docs@arkaria.postgresql.org; Sat, 25 Nov 2017 08:04:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIVRz-0003V7-N2 for pgsql-docs@arkaria.postgresql.org; Sat, 25 Nov 2017 08:04:35 +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 1eIVRz-0003Ut-85 for pgsql-docs@lists.postgresql.org; Sat, 25 Nov 2017 08:04:35 +0000 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eIVRv-0006xW-T9 for pgsql-docs@postgresql.org; Sat, 25 Nov 2017 08:04:33 +0000 Received: by mail-wr0-x234.google.com with SMTP id k18so17125894wre.1 for ; Sat, 25 Nov 2017 00:04:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=s0vH7bBKPqHtZPuK6PZepYYWgKnEwIavwfws4tvrBh4=; b=DToqs4XckTvR5GL669eoE7Mymv/e1VPG0RYQSN0155lbVTgON2ugQmnxTJJG8ldMlX PejOfQHMHU6GUxqRhDb+p0qDG7UyIAf1s+I1P9W6ktvSlK+HBAitp+TmiG4HS8WLikG+ oXxI48J0fpfckVgLXIXI/MOW2HS20Z9sWbLaH07OiyKeFz6s3N344/62sprlDl3Uy9lX B/JJhP0k43Tp9TMpu1VuVCqZ75iCy2M55sC6mB7xxrHKxt3a1V5iOaC9fypejdGtxvSh JCrSl1Pgph+TkAsyP4bTgOqD6xyqwxMkXDdbpCMw7A1QnNxQXtRsuexr2DTGy4HjuKAA UtQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=s0vH7bBKPqHtZPuK6PZepYYWgKnEwIavwfws4tvrBh4=; b=gcXRLjn7E8/XsXQluev2dADoEkATjCk275nR/0t+EF7Tyqg8AD7E/MiwGd6BRVGq01 qshtpcuSYQpdn/sAiBJXzJhWouDUYw6DCxCnM83E/POKlV4XrVz8OwFZE9XlyP6kF/Jq oJeySM4/ULqkXkHpDqw7LcOpPsslsXFpXXe7Bz2MtK6TZCE0lJGQbPY+Q5qIsIQLKI5U 8CY+D/Xjybi8G0oP2/04QWyneJBPnQ6rNnbZ2f3pRzeahvPV0HZ0JhToW1OfGJI44nhv Ikv4rtBhleQoNkvTSLfAWJswkxYMnubgImpcMM1P9XLLWmwXTcLuz0JvpUWylP21KNC4 rttA== X-Gm-Message-State: AJaThX4FQ8dbPaMWZq1V7WfgkKIvzX7CLu1f8FFS+PD8Yit3o+GwO5jH jWgDbSRkuMKULM7lk0C57l4GkvE/xAa8P91ut4fp0w== X-Google-Smtp-Source: AGs4zMblVjdSGlVBTYXTIMqFmBM0JpvywwpJyBPQ9cplOjRlH/ZLx/lcRmEf7yNrzBIoXmID2fTnO4GkszUReHGM76M= X-Received: by 10.223.150.46 with SMTP id b43mr19610909wra.5.1511597069343; Sat, 25 Nov 2017 00:04:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.164.205 with HTTP; Sat, 25 Nov 2017 00:03:48 -0800 (PST) In-Reply-To: References: <6c7f286d-8803-3884-0638-10f513498464@gmail.com> From: Thomas Munro Date: Sat, 25 Nov 2017 21:03:48 +1300 Message-ID: Subject: Re: MacPorts xsltproc is very slow? To: Alexander Lakhin Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Nov 25, 2017 at 7:18 PM, Alexander Lakhin wrote: > Thanks! Just to compare your results with my: > > number match name mode Calls Tot 100us > Avg > 0 d:appendix label.markup 22503 70018988 > 3111 > 1 chunk-all-sections 1394 36361616 > 26084 > 2 d:chapter label.markup 24918 20792834 > 834 > 3 href.target 23895 18556477 > 776 > 4 footer.navigation 1394 5276429 > 3785 > 5 header.navigation 1394 5095535 > 3655 > 6 gentext.template 237071 857659 > 3 > > vs > > number match name mode Calls Tot 100us > Avg > > 0 gentext.template 247659 742878 > 2 > 1 chunk-all-sections 1394 705195 > 505 > 2 href.target 35446 663090 > 18 Hmm. Well, this is all new to me but I'd have expected the numbers in the "Calls" column to be entirely deterministic. 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. -- Thomas Munro http://www.enterprisedb.com