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 1rbuSr-00HXVc-MJ for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Feb 2024 03:37:09 +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 1rbuSq-00CFos-90 for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Feb 2024 03:37:08 +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 1rbuSp-00CFok-VZ for pgsql-hackers@lists.postgresql.org; Mon, 19 Feb 2024 03:37:07 +0000 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rbuSn-007vDc-NE for pgsql-hackers@lists.postgresql.org; Mon, 19 Feb 2024 03:37:07 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 0674513800A9; Sun, 18 Feb 2024 22:37:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 18 Feb 2024 22:37:04 -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=fm1; t=1708313824; x=1708400224; bh=gKiD+wBsxX hsf3z8ZqNG1y5m2O2Jg0g8Pitt303SlFk=; b=YgVWl1m2h6CPmZqNfqwXYMbc17 OvAfrJPfRCi7CJkAgvR06jXfl9RkFh16TL164pEDXgGnBkoNOgyL2wf5Zndre7Ac u4ZtTEW5tKWXKAy6EPbaLzXdatQwYxYiKvZWdh2cUPBLNDlXfZPXNom75qJUdTAH cUI3Ryy2K8WdoKn7aVplz9G9JBHXZTZK/wouPcFZHfthsqMHjHKmvliFgmNou8xr OBKvbWQFH4DUj0FHP0ZDhWJrAB8mUcqVIMLDLHmgwsxMtfKy1PAiiXEE+0D7H2tr Erc+uSQOUq1wWG0vsXlOmi0rB/PiXJ1YlI5dJWOCqqRk8uavxXR7Zj+dp5qg== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708313824; x=1708400224; bh=gKiD+wBsxXhsf3z8ZqNG1y5m2O2J g0g8Pitt303SlFk=; b=q4GR00cnmaFQRqTZSpYWT3Ci0YOezL2HlSa+QyvLO7RH ejc4e+0+D8eQRL6ehXyjDWlxgUlz1kyBkxaXM0wvGh+bpeC7+TDDM+Glzfot3GUa hJry6LkUT+qRKol32AeUGfvksHFyxmf00DT0geC2rlQuWJYZXRF2rpvO9j7eQ5/z Y3q2WV2+D3SCdaGyNMFWNSoVNXz4jo5Th5uhnZN0qH3njKqSu72SlLfayCegZuro BeZ2LTt/UTY+1OfCX6vGFrQ22R/06p1lw21s/qZiMuqZUIyKcAuDFElAj3qLqsM0 KOZsyohO5i0O80jk0SSc4vFzy9YxByHyrhOH7RF8mw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdejgdeivdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 18 Feb 2024 22:37:01 -0500 (EST) Date: Mon, 19 Feb 2024 12:36:52 +0900 From: Michael Paquier To: Andres Freund Cc: Laurenz Albe , pgsql-hackers@lists.postgresql.org Subject: Re: Speeding up COPY TO for uuids and arrays Message-ID: References: <679d5455cbbb0af667ccb753da51a475bae1eaed.camel@cybertec.at> <20240217202433.b4f3hbvu45ntld7c@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T/ZnLcj0BxGOgHT+" Content-Disposition: inline In-Reply-To: <20240217202433.b4f3hbvu45ntld7c@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --T/ZnLcj0BxGOgHT+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 17, 2024 at 12:24:33PM -0800, Andres Freund wrote: > I wonder if we should move the core part for converting to hex to numutil= s.c, > we already have code the for the inverse. There does seem to be further > optimization potential in the conversion, and that seems better done some= where > central rather than one type's output function. OTOH, it might not be wor= th > it, given the need to add the dashes. I'd tend to live with the current location of the code, but I'm OK if people feel differently on this one, so I'm OK with what Laurenz is proposing.=20 >> - Patch 0003 speeds up array_out a bit by avoiding some zero >> byte writes. The measured speed gain is under 2%. >=20 > Makes sense. +1. -- Michael --T/ZnLcj0BxGOgHT+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmXSzNQACgkQnvQgOdby QH1lqg/9HUzPjg57BfV6SXxM5wJXCpMeoITAxy9KEtrNWmuOusN1Tt2s9Aejwonw seo02otP44WJ5qmzy5eOdW3WdfTpJzCGeJLbNcB4UJaLmP8/zsWRcwRGhmr1WuRk dKJd0L/sNc2YAOOQwb+6zga6MpCYkHGU37ZDHAJaL9/m2LsryO960fuG0659Rkx8 MNXRsvGao34Ttkpi+wXy0BphpJ2KeEry1/lcklA+OHvLU0EuDltFUvLJglsDt3kq gYhmTj+mkFB/mMcBMuX8RbC2LYrN2zoKo7M3u2R0QVITr84aQxREX8L31XrB8jVR VVa3gCmyyYuzeicRHew2CXqsmcB7t2Yo7KjE13QfWQLoLpptZ/Vrwsg16L377V9n ZSok9x2/5T0W5BwXJqCKVHhyMfLnM/V50elm8LSBUXOUepVcqEXc+MHKvynLsKA0 3ut+cjc4lbB2EJzZlLdOfA3vO9IBC1QkT0Pzh3FfhwS7RVxLyQSpEmPRPREwiUsA DwrFFWgn7KKbFwXtQN5w7YUTbY/nXLs3Xzds+8y/rbmtD4tKj0lZhO9+q+jnKKSi 9YvQ1lPs/vlWq3ciXkRhwlqMhYTe97rbmapsTjxD8ne8HWJLj9D3ORVUXVoJJxxs MV/FxvsEwom7W187qX2Ie5EeRlyQCenXk+/OXtl2y0ixFkI+5GY= =m6R1 -----END PGP SIGNATURE----- --T/ZnLcj0BxGOgHT+--