Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and
Bruce Momjian <bruce@momjian.us>
Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and free'd for every transaction or statement, respectively. This patch puts these data structures into static memory, thus saving a few CPU cycles and two malloc calls per transaction or (in isolation level READ COMMITTED) per query. Manfred Koizar
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/sinval.c | modified | +18 −8 |
| src/backend/utils/time/tqual.c | modified | +10 −23 |
| src/include/utils/tqual.h | modified | +2 −2 |