postgresql/src
Nathan Bossart cb7b2e5e8e Remove some unnecessary optimizations in popcount code.
Over the past few releases, we've added a huge amount of complexity
to our popcount implementations.  Commits fbe327e5b4, 79e232ca01,
8c6653516c, and 25dc485074 did some preliminary refactoring, but
many opportunities remain.  In particular, if we disclaim interest
in micro-optimizing this code for 32-bit builds and in unnecessary
alignment checks on x86-64, we can remove a decent chunk of code.
I cannot find public discussion or benchmarks for the code this
commit removes,  but it seems unlikely that this change will
noticeably impact performance on affected systems.

Suggested-by: John Naylor <johncnaylorls@gmail.com>
Reviewed-by: John Naylor <johncnaylorls@gmail.com>
Discussion: https://postgr.es/m/CANWCAZY7R%2Biy%2Br9YM_sySNydHzNqUirx1xk0tB3ej5HO62GdgQ%40mail.gmail.com
2026-02-12 11:32:49 -06:00
..
backend Add support for INSERT ... ON CONFLICT DO SELECT. 2026-02-12 09:57:04 +00:00
bin pg_upgrade: Fix handling of pg_largeobject_metadata. 2026-02-09 14:58:02 -06:00
common Fix mb2wchar functions on short input. 2026-02-09 12:08:58 +13:00
fe_utils Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
include Remove some unnecessary optimizations in popcount code. 2026-02-12 11:32:49 -06:00
interfaces libpq: Prepare for protocol grease during 19beta 2026-02-06 10:31:45 -08:00
makefiles tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
pl Fix plpgsql's handling of "return simple_record_variable". 2026-02-11 16:53:14 -05:00
port Remove some unnecessary optimizations in popcount code. 2026-02-12 11:32:49 -06:00
template Remove traces of support for Sun Studio compiler 2025-09-12 07:39:05 +02:00
test Add support for INSERT ... ON CONFLICT DO SELECT. 2026-02-12 09:57:04 +00:00
timezone Update time zone data files to tzdata release 2025c. 2026-01-18 14:54:33 -05:00
tools Add support for INSERT ... ON CONFLICT DO SELECT. 2026-02-12 09:57:04 +00:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
Makefile.shlib Use exported symbols list on macOS for loadable modules as well 2025-06-10 07:04:43 +02:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00