diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-11-18 11:44:11 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-11-18 11:52:35 +0900 |
commit | 03a42c9652f8cc2c447840e39418b862c48fd41d (patch) | |
tree | 11a1da99cf7a0e9c86f68ab8b8085470bd725a4f /src/backend/access/gist/gist.c | |
parent | 5be1dabd2ae0cf48d927aad363c4b65507e38b25 (diff) | |
download | postgresql-03a42c9652f8cc2c447840e39418b862c48fd41d.tar.gz postgresql-03a42c9652f8cc2c447840e39418b862c48fd41d.zip |
Use pg_memory_is_all_zeros() in PageIsVerifiedExtended()
Relying on pg_memory_is_all_zeros(), which would apply SIMD instructions
when dealing with an aligned page, is proving to be at least three times
faster than the original size_t-based comparisons when checking if a
BLCKSZ page is full of zeros. Note that PageIsVerifiedExtended() is
called each time a page is read from disk, and making it faster is a
good thing.
Author: Bertrand Drouvot
Discussion: https://postgr.es/m/CAApHDvq7P-JgFhgtxUPqhavG-qSDVUhyWaEX9M8_MNorFEijZA@mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions