Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0A9u-0001xp-1o for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Apr 2017 17:09:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d0A9t-000779-4O for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Apr 2017 17:09:49 +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 1d0A9r-00071R-GD for pgsql-hackers@postgreSQL.org; Mon, 17 Apr 2017 17:09:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d0A9p-0002iX-9q for pgsql-hackers@postgreSQL.org; Mon, 17 Apr 2017 17:09:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3HH9XDW007986; Mon, 17 Apr 2017 13:09:33 -0400 From: Tom Lane To: Andres Freund cc: Dagfinn Ilmari =?iso-8859-1?Q?Manns=E5ker?= , Andreas Karlsson , pgsql-hackers@postgreSQL.org Subject: Re: Cutting initdb's runtime (Perl question embedded) In-reply-to: <20170417165315.7jtyajt7unjp56ii@alap3.anarazel.de> References: <30896.1492006367@sss.pgh.pa.us> <972d541d-7285-53ff-ea71-dcbfd886570a@proxel.se> <6312.1492100010@sss.pgh.pa.us> <20170417165315.7jtyajt7unjp56ii@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 17 Apr 2017 09:53:15 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <7984.1492448973.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 17 Apr 2017 13:09:33 -0400 Message-ID: <7985.1492448973@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Andres Freund writes: > On 2017-04-17 17:49:54 +0100, Dagfinn Ilmari Mannsåker wrote: >> I threw Devel::NYTProf at it and picked some more low-hanging fruit. > I'm a bit doubtful about improving the performance of genbki at the cost > of any sort of complication - it's only executed during the actual > build, not during initdb... I don't see much point in doing things like > 3) and 4), it's just not worth it imo. Yeah, it's only run once per build, or probably even less often than that considering we only re-run it when the input files change. I could get interested in another 20% reduction in initdb's time, but not genbki's. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers