• Tom Lane's avatar
    Minor speed hacks in AllocSetReset: avoid clearing the freelist headers · 05b4293b
    Tom Lane authored
    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.
    05b4293b
aset.c 32.6 KB