Use pg_memory_is_all_zeros() in PageIsVerifiedExtended()
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/page/bufpage.c | modified | +1 −12 |
Discussion
- define pg_structiszero(addr, s, r) 96 messages · 2024-09-18 → 2024-11-18