aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-05-14 20:29:13 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-05-14 20:29:13 +0000
commit05b4293bd82035b22d673da90e64eae38beb4ceb (patch)
tree908b6f1f1bd1b7f82e0184051920becede4f17f5 /src/backend/access/gist/gist.c
parent0ff7a2c2ad04404aeb1f45e1ae5d67dc91b575ee (diff)
downloadpostgresql-05b4293bd82035b22d673da90e64eae38beb4ceb.tar.gz
postgresql-05b4293bd82035b22d673da90e64eae38beb4ceb.zip
Minor speed hacks in AllocSetReset: avoid clearing the freelist headers
when the blocks list is empty (there can surely be no freelist items if the context contains no memory), and use MemSetAligned not MemSet to clear the headers (we assume alignof(pointer) >= alignof(int32)). Per discussion with Atsushi Ogawa. He proposes some further hacking that I'm not yet sold on, but these two changes are unconditional wins since there is no case in which they make things slower.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions