forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitea7dace
committed
Simplify/speed up assertion cross-check in ginCompressPostingList().
I noticed while testing some other stuff that the CHECK_ENCODING_ROUNDTRIPlogic in ginCompressPostingList could account for over 50% of the runtimeof an INSERT with a GIN index. While that's not relevant to productionperformance, it's still kind of annoying in a debug build. Replacingthe loop around short memcmp's with one long memcmp works just as welland is significantly faster, at least on my machine.1 parent7e39b96 commitea7dace
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | 269 | | |
271 | 270 | | |
272 | | - | |
273 | | - | |
| 271 | + | |
274 | 272 | | |
275 | 273 | | |
276 | 274 | | |
| |||
0 commit comments
Comments
(0)