Code review for dynahash change.
authorThomas Munro <tmunro@postgresql.org>
Sat, 19 Sep 2020 03:39:48 +0000 (15:39 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sat, 19 Sep 2020 03:53:06 +0000 (15:53 +1200)
commitff28809feb442eabd303955277f05cd16d9c6d8a
treea4f65870d6867dbe71ffca3e381001bce5436d7f
parentbe0a6666656ec3f68eb7d8e7abab5139fcd47012
Code review for dynahash change.

Commit be0a6666 left behind a comment about the order of some tests that
didn't make sense without the expensive division, and in fact we might
as well change the order to one that fails more cheaply most of the time
as a micro-optimization.  Also, remove the "+ 1" applied to max_bucket,
to drop an instruction and match the original behavior.  Per review
from Tom Lane.

Discussion: https://postgr.es/m/VI1PR0701MB696044FC35013A96FECC7AC8F62D0%40VI1PR0701MB6960.eurprd07.prod.outlook.com
src/backend/utils/hash/dynahash.c