Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tboJU-00DYh9-7W for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jan 2025 22:07:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tboJS-004vrH-RI for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jan 2025 22:07:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tboJS-004vr8-Hv for pgsql-hackers@lists.postgresql.org; Sat, 25 Jan 2025 22:07:34 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tboJP-001VUX-07 for pgsql-hackers@postgresql.org; Sat, 25 Jan 2025 22:07:33 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-3ce873818a3so29352385ab.1 for ; Sat, 25 Jan 2025 14:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737842849; x=1738447649; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RxdcfFBWEiZLDpV0UhlRce1h/W187TQF2/c04CsOejM=; b=WLC9p/E81WSFvYNwUyVKGXRP/j+5CFi2ssnDJvVp9pWqg9ORf38biOgX1dewZHoSu6 2BuHnncm4pHM5Xu188Igz3/vIUHki8gGPSflr3WyTzrxeFCvQD9oI73/RepVjsaGNd1J 8TtqXEQ0tHpgtxxxLS+e64zU5n84BAzlTKM7KOBtvEUkWDMJkj1G+MNHachewRiRLwkd Mswhbxa3bbN4ulRdQKBlonWm9v1EOGUjz3C9HWHvh8PTzH9TxZc7E2XGUoYjGsmRw9Mj BVAPZeNsyqmINQxjJr8pgrHCd5D/hrzYqLA5irRC3+xbOlhKmy8pOEss+zJYpjhXXn32 voSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737842849; x=1738447649; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RxdcfFBWEiZLDpV0UhlRce1h/W187TQF2/c04CsOejM=; b=gDAtAzUOLPqVlQgbIj42GEGNMEAoSDuRDWBsUBGFZKW5yr+blmPb9SsfvRuI7q0KhE 99yxQWs7cRfzWMX/7hRYGpeQPVa2reE6CoNBPC9WYuFkK3CUrUyuDhu5vc1Uf/vauEfC +k8+19hg+j2pEwT51q7gRFawqRhbRJJmqVgOLgiSRII2vcv+6ZGIreidD0KzxUzb43QV Z0hND0w/EYT4SbtA7ejS02JTdOshOW32gloP/S/cS++qq0GXxouL6+ORCxrr2vV6hoOq vFiC3u7t65Z4tNyZVQ0BRtD4AfKKniT98YGUqk2hJl8mFPw3IR1pHo/k8ih9L7HGIuyT OA4g== X-Forwarded-Encrypted: i=1; AJvYcCVjqTxUw1UEtpegn766GWg5mRRQiXF9vX/UnxdmfG1s1/az761vE1aXJ7Su/7Md85Fuew/MGeVerpmnj0dJ@postgresql.org X-Gm-Message-State: AOJu0YzCRGt04mJKWByhnTEOeYpSVcKuYpfiLnu+kE7fQ8BsttfcrYfK x/S1YTFNSXGQlcIJkfngG8oiYvJOnICOwOL9oN8sWAW6u3W6MBya X-Gm-Gg: ASbGncvYBbPRmCYI8z+ZJrjigq9A4gBj+v2hs8dIuaqXDMnZ7XoqArnM4/sDEHGn8sk qVIGPKABmy9bCq3Y6xaad2J4INDBRa+jaiH7lqQvE4WkkrMKW2Ildhcu2DWP2acwYrMeFYI/3sV OSPDkGrC3MxjcC5i72FGT1XWU2wz3jvT6e84T7fJ9eAefzCtJLTShKF1BNM9RqVt5KkJ9H9uAr6 M33LxeSmjUBckdgIlnhNr3CAvm92TUl2XOUuKNeOW72vMm00zipq/ElTM8zqVFACT8AvI94BB4R hx5xlUAGaW8hJU0dyXPemtwNR0VZlp7YvSUMRIcjnbZKpjLhgV8buqnlXvv1rjSTclzriqQ= X-Google-Smtp-Source: AGHT+IFQGO5uYKMhdQe8RpoOdqVdcYJkgl5K/E46dU/dwlLAJCzyJzfWOipi3dO0kTCXQrSf1SSlbA== X-Received: by 2002:a05:6e02:3f03:b0:3ce:87e3:c26c with SMTP id e9e14a558f8ab-3cf743df88amr352732015ab.5.1737842849638; Sat, 25 Jan 2025 14:07:29 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3cfc743377esm16125365ab.16.2025.01.25.14.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jan 2025 14:07:29 -0800 (PST) Date: Sat, 25 Jan 2025 16:07:27 -0600 From: Nathan Bossart To: "Chiranmoy.Bhattacharya@fujitsu.com" Cc: Tom Lane , David Rowley , John Naylor , "pgsql-hackers@postgresql.org" , "Devanga.Susmitha@fujitsu.com" , "Ragesh.Hajela@fujitsu.com" Subject: Re: [PATCH] Hex-coding optimizations using SVE on ARM. Message-ID: References: <622082.1736834344@sss.pgh.pa.us> <1194263.1736925288@sss.pgh.pa.us> <1519827.1736990839@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jan 22, 2025 at 10:58:09AM +0000, Chiranmoy.Bhattacharya@fujitsu.com wrote: >> The functions that test the length before potentially calling a function >> pointer should probably be inlined (see pg_popcount() in pg_bitutils.h). >> I wouldn't be surprised if some compilers are inlining this stuff >> already, but it's probably worth being explicit about it. > > Should we implement an inline function in "utils/builtins.h", similar to > pg_popcount()? Currently, we have not modified the header file, everything > is statically implemented in encode.c. Yeah, that's what I'm currently thinking we should do. -- nathan