diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-03-07 13:31:17 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-03-07 13:31:17 -0500 |
commit | ea7dace2aa21e79a7a8eb23c493bcd2057d9bd7e (patch) | |
tree | caaf00c5cbd274518f2f87a2e6fe0dd7ee181ecd /src/backend/access/transam/commit_ts.c | |
parent | 7e39b968f118c6444bd3a3bd59c3e9d73e652e0c (diff) | |
download | postgresql-ea7dace2aa21e79a7a8eb23c493bcd2057d9bd7e.tar.gz postgresql-ea7dace2aa21e79a7a8eb23c493bcd2057d9bd7e.zip |
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.
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions