forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite819bbb
committed
Remove use of pg_memory_is_all_zeros() in bufpage.c
After a closer lookup, this makes the all-zero check of the page moreexpensive, so let's remove the new function call in bufpage.c. Themaths of the check were also incorrect, checking that the page was fullof zeros only for the first 1kB.This brings back the code to the state it was at49d6c7d.Per discussion with David Rowley and Bertrand Drouvot.Discussion:https://postgr.es/m/CAApHDvrXzPAr3FxoBuB7b3D-okNoNA2jxLun1rW8Yw5wkbqusw@mail.gmail.com1 parent07e9e28 commite819bbb
1 file changed
+12
-1
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
| 92 | + | |
92 | 93 |
| |
93 | 94 |
| |
| 95 | + | |
94 | 96 |
| |
95 | 97 |
| |
96 | 98 |
| |
| |||
124 | 126 |
| |
125 | 127 |
| |
126 | 128 |
| |
| 129 | + | |
127 | 130 |
| |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
128 | 139 |
| |
129 |
| - | |
| 140 | + | |
130 | 141 |
| |
131 | 142 |
| |
132 | 143 |
| |
|
0 commit comments
Comments
(0)