Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gujw5-0007ZY-R3 for pgsql-committers@arkaria.postgresql.org; Fri, 15 Feb 2019 20:18:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gujw4-0004WM-9p for pgsql-committers@arkaria.postgresql.org; Fri, 15 Feb 2019 20:18:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gujw3-0004I5-VP for pgsql-committers@lists.postgresql.org; Fri, 15 Feb 2019 20:18:12 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gujw1-0001Tf-48 for pgsql-committers@lists.postgresql.org; Fri, 15 Feb 2019 20:18:10 +0000 Received: by mail-qk1-x742.google.com with SMTP id o125so6505131qkf.3 for ; Fri, 15 Feb 2019 12:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=WGqHYhfMns1GGLCtTAc1uD0qaIXVAQmKNNs9Mi8eTTQ=; b=GyUwOa+x7Xl35RuvJfmFUsilWiHGOMaw+86SaVPXPn8BTFnfXzD0tjZ+3mFT68Fr9f 3MO2jv1ahW4/+2PQYi/7UxVdTKEyqL0Q479nCpKq5cUyzlqNipVIa+ONW5IMI7+eYKr8 LDpgxOJPW0Np9Smkeuij0uXLUw41hHktd+X5iWVSPxT7nXpaBRE4h0IRzLmgbet9lUZw KE9xZNdbi8YnmI6nK4DjfiOWjYar1TaJB8sIJFoOfMGdq66cVODl6A1zzeWVSRpmAy1X czcM4iiNoutPYD6r4cHoMDPmgKNRuhOtoBoiojPNATm70igmKMVl3fBpJCe3JK0fEiob 0Pjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=WGqHYhfMns1GGLCtTAc1uD0qaIXVAQmKNNs9Mi8eTTQ=; b=N4EGVpGnOcTTvbQEVCJSe2UFqv7AfcJ3CEDszEf8f7ulB96s7t6+MUA4CRPsuvz+Da pe5aZagDAneT7K8xYXn5MYfX6NP6KkDFI6qsYk/y38pn/wjRzmcKT/xOXSEPu1aAYUpV uVxHC4lylp17xCS5gIGxLEatAlZpPzqyH+0IDy59eb9LedkbtGjPybQWdjQF/xN5MZDD x3qBIgM1f99AzSuNTjlxP0ACQB8nYriifbT+ZXp2GDnGXLCXNX4BE4pel0derm0UT6ON 76nXcoSzd+ClWKrfdhfm1F55yjpOj7Jmm3vjVa1DOfjeTYYwi4E2YxLaDYt97PEttcJ8 q4MA== X-Gm-Message-State: AHQUAuYQ3q8MNtzKv99k1K1kSJF0zviWzEUV+iji6rCy4YjVJYw7qf2z bjCetFa0KmQAHYV2GGWoeHwW26h2C5Zg0EVTZhuddJWXbgQzDLUWqChdLPtQNFgiR/iGHKXYXfk o0nQbbHZfxhgoVWcRUwF9YAIft7OlNUQgOAYSBsgM4ZsckR/o3E8UA9gJB99AtdJOXP2dBiHA/i mAH61cbsia7H8vtS89GRev X-Google-Smtp-Source: AHgI3IYVRiA8I0JSe8XMSQLRoTg/qGBq5nhaickUSEjgp17mHwzObsLEwA5HvLB1HE/7khBeZyyw1Q== X-Received: by 2002:a37:b381:: with SMTP id c123mr8359808qkf.346.1550261888154; Fri, 15 Feb 2019 12:18:08 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id u5sm2810353qtg.37.2019.02.15.12.18.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Feb 2019 12:18:07 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 0A5E4123A3F; Fri, 15 Feb 2019 17:18:05 -0300 (-03) Date: Fri, 15 Feb 2019 17:18:05 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix compiler builtin usage in new pg_bitutils.c Message-ID: <20190215201804.GA791@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18610.1550260649@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-15, Tom Lane wrote: > Alvaro Herrera writes: > > I'm done with this stuff. Anybody feel free to run with it, but for a > > barely noticeable performance improvement it's not going to be me. > > Sure, I'll pick it up. I agree it's probably a marginal performance > change, but it seems a shame to give up when we were 80% of the way > there. (BTW, my reading of the articles I cited, as well as my own runs of the test programs therein, suggest that in order to get a really good performance improvement you need to hand-code calls to the POPCNT instruction in assembly rather than rely on the compiler intrinsics. I think there is^Wwas almost enough infrastructure to do that. I'm not sure that the operations being optimized by these changes are interesting enough, in the grand scheme of things.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services