Re: counting pallocs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: counting pallocs
Date
Msg-id 21833.1337258640@sss.pgh.pa.us
Whole thread Raw
In response to counting pallocs  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> One piece of reasonably low-hanging fruit appears to be OpExpr.  It
> seems like it would be better all around to put Node *arg1 and Node
> *arg2 in there instead of a list...  aside from saving pallocs, it
> seems like it would generally simplify the code.

Obviously, Stephen Frost's list-allocation patch would affect your
results here ... but I wonder how much the above change would affect
*his* results.  Specifically, the observation that most lists are 1
or 2 elements long would presumably become less true, but I wonder
by how much exactly.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Joshua Berkus
Date:
Subject: Re: Strange issues with 9.2 pg_basebackup & replication
Next
From: Florian Pflug
Date:
Subject: Re: read() returns ERANGE in Mac OS X