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 1tXZfe-00A3Nb-Kj for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jan 2025 05:40:59 +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 1tXZfc-00FOCJ-CQ for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jan 2025 05:40:56 +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 1tXZfc-00FOCA-2r for pgsql-hackers@lists.postgresql.org; Tue, 14 Jan 2025 05:40:56 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tXZfa-000Ilm-0O for pgsql-hackers@postgresql.org; Tue, 14 Jan 2025 05:40:56 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id B841A25401AB; Tue, 14 Jan 2025 00:40:51 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Tue, 14 Jan 2025 00:40:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1736833251; x=1736919651; bh=YiirWRH2w7 XpYGix1ARY5kkg9LvX4xzQnp9Pygu5Icg=; b=C5m0HekwsT2Qu0JsAwOdiWpGIA UM6B4T5EQjAkCFIQYL4iZKYPpi50PcgnZcMj6RjCTvXuzBedzDVdwBCVBHBqc59/ KEYzNRZ3CkmW/w6zH3p9lBckqLu3WzEhPsxYGmdPMQnEShIblK4Q+k+b2RKWC5/V KZ497K/xWwtybAJf0EhuujqK2ric14QWIxlB/pCB2FXW4YqAl4A7am0nhW5VXeog ELEFrjWzg4pFFZ2jCSgCLbjkQlL7dn0OCcd+yOljRyWaUb2J6jw/OwxZ1RtKV6up sPGeC1usxgq5hgSsG1iNcq1mNenft47xCfKYCf4phZvEqb3e7h3RTO1yg9FA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1736833251; x=1736919651; bh=YiirWRH2w7XpYGix1ARY5kkg9LvX4xzQnp9 Pygu5Icg=; b=J75F8K1s11b8xg3I9hULLQGp+Q5KwQJAS3LsF08gv5wVIlXECwN JYkPDE1UCQrLBOYMucoAqTKR6rrRGpl9AiyCx0SWSc8DmasW4JUg5ChHqQ7maNnn I2sdYsfdJq3QWvNZc24ljK15x2WH4WFbNSV6zxnGjXIeG7BbzRPtv0RiSd9rEUjo j9Q8Vj8CfYGOhf6o86vMNY+9wkg3teZ2CUzADggs2qLdoe8Rmcd8aI9MeTIFqZf/ Ffp4abrmb1WbVr6CRWq4UelYwrwn7ZZD1WinJ4i66F5SU2gDrp09fNOH4EqQqEl1 5XAN4RmPFX+cVpKbnbq1nyoTUiZHZVje4rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudehhedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteel ieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepiedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepjhhohhhntghnrgihlhhorhhlshesghhmrghilhdrtghomhdprhgt phhtthhopehnrghthhgrnhgusghoshhsrghrthesghhmrghilhdrtghomhdprhgtphhtth hopegthhhirhgrnhhmohihrdgshhgrthhtrggthhgrrhihrgesfhhujhhithhsuhdrtgho mhdprhgtphhtthhopeguvghvrghnghgrrdhsuhhsmhhithhhrgesfhhujhhithhsuhdrtg homhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdr ohhrghdprhgtphhtthhopehrrghgvghshhdrhhgrjhgvlhgrsehfuhhjihhtshhurdgtoh hm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Jan 2025 00:40:49 -0500 (EST) Date: Tue, 14 Jan 2025 14:40:40 +0900 From: Michael Paquier To: John Naylor Cc: Nathan Bossart , "Chiranmoy.Bhattacharya@fujitsu.com" , "Devanga.Susmitha@fujitsu.com" , "pgsql-hackers@postgresql.org" , "Ragesh.Hajela@fujitsu.com" Subject: Re: [PATCH] Hex-coding optimizations using SVE on ARM. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YRCmg3r1xxGJapTD" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --YRCmg3r1xxGJapTD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 14, 2025 at 12:27:30PM +0700, John Naylor wrote: > We can do about as well simply by changing the nibble lookup to a byte > lookup, which works on every compiler and architecture: >=20 > select hex_encode_test(1000000, 1024); > master: > Time: 1158.700 ms > v2: > Time: 777.443 ms >=20 > If we need to do much better than this, it seems better to send the > data to the client as binary, if possible. That's pretty cool. Complex to parse, still really cool. -- Michael --YRCmg3r1xxGJapTD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmeF+NgACgkQnvQgOdby QH2yuA//VUyRXUoCXbUr2YVwaWs3ZGcH5gLnDYhThamGzbqqTVKpReQMvC+QKEZO CldEJafymfoIb9RDxP4CjhMh6D0rv8mzdnnlgZkXzBzzTKRXTrOGn9rRde326krA 5Z1l+dEMiboVED58qQcLsloWER8Hl2aQyx50YuU+oi0L3QMioWNxHdfxl/IHul8P oPcCJohQJJBm0Sx9NpxZeTJBV+LxslyphUHqCjt3zpMlDUdgs9xyk+ZH1eSouZEt 2T6I0KYORWFCSSkbCiOML+EMtUeFNx0DNVklodr6rDsrgqzapz0zWRlviDoLEGxi N2068c587WtV57nC2WwmaiXcU0Yabk9xVV4nY/REEuLDV+LO4iLjSsd5AsNqP9uK RZTdPK53iCoPBpKbb2dYsQ/e0aPnVvJOrLnC5fzm5hf+YCxygFTt0KeQKxnd2GL7 8qKaCpqlAP4Fg9I27CjES7dFqBAbC/JtvdymBLT1eFgjYH+6ZMS7GIcSoHBSv1bq xgKLCwISrtwPmQppkemr+bnHA05QHdlpfxmyIdRvl4mn6RSIeTQRk2JtdCpcOeE1 iy0/TeIAuHsg22+fYhNMEvrmiAPeCWNHvwaquV2jQs5AG4lAtXJP9efegotji2nj AxaS4m3sFkSK6RfekRyrwf0FZvzNy90+mYnimJxA63YuXx9+7Lw= =1VPB -----END PGP SIGNATURE----- --YRCmg3r1xxGJapTD--