pgsql: Shave some cycles off subscription/t/100_bugs.pl tests. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Shave some cycles off subscription/t/100_bugs.pl tests.
Date
Msg-id [email protected]
Whole thread Raw
List pgsql-committers
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/[email protected]

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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Variable renaming in preparation for refactoring
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Add missing object classes to object_address test