Re: refactor heap_deform_tuple guts

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: refactor heap_deform_tuple guts
Date: 2013-08-07 14:36:52
Message-ID: 20130807143652.GD10718@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas escribió:
> On Tue, Aug 6, 2013 at 6:32 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
> > heap_deform_tuple and slot_deform_tuple contain duplicated code. This
> > patch refactors them so that the guts are in a single place.
> >
> > I have checked the resulting assembly code for heap_deform_tuple, and
> > with the "inline" declaration, the gcc version I have (4.7.2) generates
> > almost identical output both after the patch than before, thus there
> > shouldn't be any slowdown.
>
> Although I'm generally in favor of eliminating duplicated code, I have
> to admit that in this case I'm not sure I see the point.

Yeah, I guess in isolation this doesn't make that much sense. I am
hesitant to create a third copy in the minmax patch, but I will do that
for now and propose the refactoring later.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2013-08-07 14:40:24 Re: StrategyGetBuffer optimization, take 2
Previous Message Fujii Masao 2013-08-07 14:03:45 Re: [9.3 bug] disk space in pg_xlog increases during archive recovery