Tweak a few of the most heavily used function call points to zero out
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Oct 2002 17:19:55 +0000 (17:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Oct 2002 17:19:55 +0000 (17:19 +0000)
commit3b8ba163d0511a238971c165ffeeb9abdeaceb7c
treea31dd62f5407aa470144c0466508cb80a1563646
parent53c5edace83616d34e5025841c22b2106aa1aaf0
Tweak a few of the most heavily used function call points to zero out
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.
src/backend/executor/nodeAgg.c
src/backend/utils/fmgr/fmgr.c
src/backend/utils/sort/tuplesort.c