diff options
| author | Nathan Bossart <nathan@postgresql.org> | 2024-04-06 22:58:23 -0500 | 
|---|---|---|
| committer | Nathan Bossart <nathan@postgresql.org> | 2024-04-06 22:58:23 -0500 | 
| commit | 41c51f0c68b21b4603bd2a9c3d3ad017fdd22627 (patch) | |
| tree | 2dbdd46a201de8197c39d51edb91dec39e28420d /src/backend/storage/ipc/dsm_impl.c | |
| parent | 792752af4eb5cf7b5b8b0470dbf22901c5178fe5 (diff) | |
Optimize visibilitymap_count() with AVX-512 instructions.
Commit 792752af4e added infrastructure for using AVX-512 intrinsic
functions, and this commit uses that infrastructure to optimize
visibilitymap_count().  Specificially, a new pg_popcount_masked()
function is introduced that applies a bitmask to every byte in the
buffer prior to calculating the population count, which is used to
filter out the all-visible or all-frozen bits as needed.  Platforms
without AVX-512 support should also see a nice speedup due to the
reduced number of calls to a function pointer.
Co-authored-by: Ants Aasma
Discussion: https://postgr.es/m/BL1PR11MB5304097DF7EA81D04C33F3D1DCA6A%40BL1PR11MB5304.namprd11.prod.outlook.com
Diffstat (limited to 'src/backend/storage/ipc/dsm_impl.c')
0 files changed, 0 insertions, 0 deletions
