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_mnorfei...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/03a42c9652f8cc2c447840e39418b862c48fd41d Modified Files -------------- src/backend/storage/page/bufpage.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)