pgsql: Make bitmapset.c use 64-bit bitmap words on 64-bit machines.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make bitmapset.c use 64-bit bitmap words on 64-bit machines.
Date: 2018-12-20 17:19:13
Message-ID: E1ga1yb-0002GB-Rt@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make bitmapset.c use 64-bit bitmap words on 64-bit machines.

Using the full width of the CPU's native word size shouldn't cost
anything in typical cases. When working with large bitmapsets,
this halves the number of operations needed for many common BMS
operations. On the right sort of test case, a measurable improvement
is obtained.

David Rowley

Discussion: https://postgr.es/m/CAKJS1f9EGBd2h-VkXvb=51tf+X46zMX5T8h-KYgXEV_u2zmLUw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/216af5eea5c8fdc9fca9d44da9eec33ac5e002d2

Modified Files
--------------
src/include/nodes/bitmapset.h | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-12-20 18:55:33 pgsql: Doc: fix ancient mistake in search_path documentation.
Previous Message Alvaro Herrera 2018-12-20 14:32:59 pgsql: DETACH PARTITION: hold locks on indexes until end of transaction