mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-15 02:46:59 +08:00
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
24 lines
509 B
Makefile
24 lines
509 B
Makefile
# src/test/modules/test_lfind/Makefile
|
|
|
|
MODULE_big = test_lfind
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
test_lfind.o
|
|
PGFILEDESC = "test_lfind - test code for optimized linear search functions"
|
|
|
|
EXTENSION = test_lfind
|
|
DATA = test_lfind--1.0.sql
|
|
|
|
REGRESS = test_lfind
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = src/test/modules/test_lfind
|
|
top_builddir = ../../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|