git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 356dd2c) | patch
Introduce optimized routine for linear searches of arrays
Wed, 3 Aug 2022 16:49:04 +0000 (09:49 -0700)
2022年8月10日 03:48:29 +0000 (10:48 +0700)
commit b6ef167564905e8dab8af1b1dba0997ec61204ca
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
src/include/port/pg_lfind.h [new file with mode: 0644] blob
src/test/modules/Makefile diff | blob | blame | history
src/test/modules/test_lfind/.gitignore [new file with mode: 0644] blob
src/test/modules/test_lfind/Makefile [new file with mode: 0644] blob
src/test/modules/test_lfind/expected/test_lfind.out [new file with mode: 0644] blob
src/test/modules/test_lfind/sql/test_lfind.sql [new file with mode: 0644] blob
src/test/modules/test_lfind/test_lfind--1.0.sql [new file with mode: 0644] blob
src/test/modules/test_lfind/test_lfind.c [new file with mode: 0644] blob
src/test/modules/test_lfind/test_lfind.control [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /