Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csWwR-0007Je-Tv for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 15:52:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1csWwR-0004Lz-GW for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2017 15:52:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csWwP-0004EJ-6o for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 15:52:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1csWwM-0007JB-Vu for pgsql-hackers@postgresql.org; Mon, 27 Mar 2017 15:52:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v2RFq5G6031040; Mon, 27 Mar 2017 11:52:05 -0400 From: Tom Lane To: Andres Freund cc: Ants Aasma , Heikki Linnakangas , Tomas Vondra , PostgreSQL-development Subject: Re: WIP: Faster Expression Processing v4 In-reply-to: <20170327152914.m3firc6rkx5tqtgo@alap3.anarazel.de> References: <5768.1490458935@sss.pgh.pa.us> <20170325222202.uz6evsjqrtwjnql6@alap3.anarazel.de> <3CC5B4C5-3ADB-4296-A04B-64F594A4CE4F@anarazel.de> <23529.1490500305@sss.pgh.pa.us> <20170326035927.5mubkfdtaqlrgm2d@alap3.anarazel.de> <20170327054314.qo6xsnlk7jcb7u2c@alap3.anarazel.de> <15684.1490621623@sss.pgh.pa.us> <20170327151750.dnpxtkjjade7kiv6@alap3.anarazel.de> <19784.1490628160@sss.pgh.pa.us> <20170327152914.m3firc6rkx5tqtgo@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 27 Mar 2017 08:29:14 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31038.1490629925.1@sss.pgh.pa.us> Date: Mon, 27 Mar 2017 11:52:05 -0400 Message-ID: <31039.1490629925@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org As to the point of whether it actually helps or not ... on gcc 6.3.1 (Fedora 25), yes it does. Seems to be one "jmp *something" per EEO_NEXT or EEO_JUMP. on gcc 4.4.7 (RHEL 6), it makes things *WORSE*. We go from about half of the dispatches getting routed through a common location, to *all* of them (except one; for some odd reason the first EEO_NEXT in EEOP_NULLIF survives as a separate jump). This seems like a bug, but there it is. So this means we'd need some serious research to decide whether to apply it. And I'm suspecting we'd end up with a compiler version test. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers