forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit03a42c9
committed
Use pg_memory_is_all_zeros() in PageIsVerifiedExtended()
Relying on pg_memory_is_all_zeros(), which would apply SIMD instructionswhen dealing with an aligned page, is proving to be at least three timesfaster than the original size_t-based comparisons when checking if aBLCKSZ page is full of zeros. Note that PageIsVerifiedExtended() iscalled each time a page is read from disk, and making it faster is agood thing.Author: Bertrand DrouvotDiscussion:https://postgr.es/m/CAApHDvq7P-JgFhgtxUPqhavG-qSDVUhyWaEX9M8_MNorFEijZA@mail.gmail.com1 parent5be1dab commit03a42c9
1 file changed
+1
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
| |||
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
129 | | - | |
130 | 127 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 128 | | |
140 | | - | |
| 129 | + | |
141 | 130 | | |
142 | 131 | | |
143 | 132 | | |
| |||
0 commit comments
Comments
(0)