pgsql: Minor optimizations based on ParallelContext having nworkers_lau

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Minor optimizations based on ParallelContext having nworkers_lau
Date: 2016-03-04 18:11:06
Message-ID: E1abuBu-0004o5-Dm@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Minor optimizations based on ParallelContext having nworkers_launched.

Originally, we didn't have nworkers_launched, so code that used parallel
contexts had to be preprared for the possibility that not all of the
workers requested actually got launched. But now we can count on knowing
the number of workers that were successfully launched, which can shave
off a few cycles and simplify some code slightly.

Amit Kapila, reviewed by Haribabu Kommi, per a suggestion from Peter
Geoghegan.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/df4685fb0cad1c75970b6e8d0aacca4d03545e04

Modified Files
--------------
src/backend/access/transam/parallel.c | 8 ++++----
src/backend/executor/execParallel.c | 2 +-
src/backend/executor/nodeGather.c | 18 +++++++-----------
3 files changed, 12 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Artur Zakirov 2016-03-04 18:24:57 Re: pgsql: Improve support of Hunspell in ispell dictionary.
Previous Message Robert Haas 2016-03-04 17:30:16 pgsql: Fix InitializeSessionUserId not to deference NULL rolename point