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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7e39b96) | patch
Simplify/speed up assertion cross-check in ginCompressPostingList().
Sat, 7 Mar 2020 18:31:17 +0000 (13:31 -0500)
Sat, 7 Mar 2020 18:31:17 +0000 (13:31 -0500)
commit ea7dace2aa21e79a7a8eb23c493bcd2057d9bd7e
Simplify/speed up assertion cross-check in ginCompressPostingList().

I noticed while testing some other stuff that the CHECK_ENCODING_ROUNDTRIP
logic in ginCompressPostingList could account for over 50% of the runtime
of an INSERT with a GIN index. While that's not relevant to production
performance, it's still kind of annoying in a debug build. Replacing
the loop around short memcmp's with one long memcmp works just as well
and is significantly faster, at least on my machine.
src/backend/access/gin/ginpostinglist.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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