aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2022-08-03 09:49:04 -0700
committerJohn Naylor <john.naylor@postgresql.org>2022-08-10 10:48:29 +0700
commitb6ef167564905e8dab8af1b1dba0997ec61204ca (patch)
tree9a2d2cc792c48588214a9e9dc8f7adfd68905667 /src/backend/access/transam/xlog.c
parent356dd2ce5b7b0f3ea11e016f73b1f173604b8452 (diff)
downloadpostgresql-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 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions