From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Shave some cycles off subscription/t/100_bugs.pl tests.
Date: Wed, 16 Nov 2022 17:35:31 +0000
Message-ID: <E1ovMJu-000U3D-P9@gemulon.postgresql.org> (raw)
Shave some cycles off subscription/t/100_bugs.pl tests.
We can re-use the clusters set up for this test script's first test,
instead of generating new ones. On my machine this is good for
about a 20% reduction in this script's runtime, from ~6.5 sec to
~5.2 sec.
This idea could be taken further, but it'd require a much more invasive
patch. These cases are easy because the Perl variable names were
already being re-used.
Anton A. Melnikov
Discussion: https://postgr.es/m/eb7aa992-c2d7-6ce7-4942-0c784231a362@inbox.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/fccaf259f22f4aedc02033516c561ca86903077d
Modified Files
--------------
src/test/subscription/t/100_bugs.pl | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Shave some cycles off subscription/t/100_bugs.pl tests.
In-Reply-To: <E1ovMJu-000U3D-P9@gemulon.postgresql.org>
References: <E1ovMJu-000U3D-P9@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox