• Tom Lane's avatar
    Tweak a few of the most heavily used function call points to zero out · 3b8ba163
    Tom Lane authored
    just the significant fields of FunctionCallInfoData, rather than MemSet'ing
    the whole struct to zero.  Unused positions in the arg[] array will
    thereby contain garbage rather than zeroes.  This buys back some of the
    performance hit from increasing FUNC_MAX_ARGS.  Also tweak tuplesort.c
    code for more speed by marking some routines 'inline'.  All together
    these changes speed up simple sorts, like count(distinct int4column),
    by about 25% on a P4 running RH Linux 7.2.
    3b8ba163
fmgr.c 41.3 KB