aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-04-30 00:12:08 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-04-30 00:12:08 +0000
commit39a333aa2b2d659f830a78a7d3c6bd43d4caa692 (patch)
treeb041e19faa0ce7a8a7d278239330e17674944508 /src/backend/tcop/postgres.c
parentb1a1ea49da183d521c2a3db676a6ec2b9c306626 (diff)
downloadpostgresql-39a333aa2b2d659f830a78a7d3c6bd43d4caa692.tar.gz
postgresql-39a333aa2b2d659f830a78a7d3c6bd43d4caa692.zip
Marginal performance hack: remove the loop that used to be needed to
look through a freelist for a chunk of adequate size. For a long time now, all elements of a given freelist have been exactly the same allocated size, so we don't need a loop. Since the loop never iterated more than once, you'd think this wouldn't matter much, but it makes a noticeable savings in a simple test --- perhaps because the compiler isn't optimizing on a mistaken assumption that the loop would repeat. AllocSetAlloc is called often enough that saving even a couple of instructions is worthwhile.
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions