Re: counting pallocs
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2012-05-17T12:44:00Z
Lists: 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