Optimize SP-GiST insertions.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Optimize SP-GiST insertions. This includes two micro-optimizations to the tight inner loop in descending the SP-GiST tree: 1. avoid an extra function call to index_getprocinfo when calling user-defined choose function, and 2. avoid a useless palloc+pfree when node labels are not used.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/spgist/spgdoinsert.c | modified | +8 −2 |
| src/backend/access/spgist/spgutils.c | modified | +19 −14 |