diff options
author | John Naylor <john.naylor@postgresql.org> | 2022-08-03 09:49:04 -0700 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2022-08-10 10:48:29 +0700 |
commit | b6ef167564905e8dab8af1b1dba0997ec61204ca (patch) | |
tree | 9a2d2cc792c48588214a9e9dc8f7adfd68905667 /contrib/basebackup_to_shell/basebackup_to_shell.c | |
parent | 356dd2ce5b7b0f3ea11e016f73b1f173604b8452 (diff) | |
download | postgresql-b6ef167564905e8dab8af1b1dba0997ec61204ca.tar.gz postgresql-b6ef167564905e8dab8af1b1dba0997ec61204ca.zip |
Introduce optimized routine for linear searches of arrays
Use SSE2 intrinsics to speed up the search, where available. Otherwise,
use a simple 'for' loop. The motivation to add this now is to speed up
XidInMVCCSnapshot(), which is the reason only unsigned 32-bit integer
arrays are optimized. Other types are left for future work, as is the
extension of this technique to non-x86 platforms.
Nathan Bossart
Reviewed by: Andres Freund, Bharath Rupireddy, Masahiko Sawada
Discussion: https://postgr.es/m/20220713170950.GA3116318%40nathanxps13
Diffstat (limited to 'contrib/basebackup_to_shell/basebackup_to_shell.c')
0 files changed, 0 insertions, 0 deletions