Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and

Bruce Momjian <bruce@momjian.us>

Commit: acd1536d9f14df6a0fdb45e22ec317bc9b254c08
Author: Bruce Momjian <bruce@momjian.us>
Date: 2003-06-12T01:42:21Z
Releases: 7.4.1
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

PathChange+/−
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