From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Speeding up COPY TO for uuids and arrays
Date: Mon, 19 Feb 2024 12:36:52 +0900
Message-ID: <ZdLM1NdbUBArxlYo@paquier.xyz> (raw)
In-Reply-To: <20240217202433.b4f3hbvu45ntld7c@awork3.anarazel.de>
References: <679d5455cbbb0af667ccb753da51a475bae1eaed.camel@cybertec.at>
<20240217202433.b4f3hbvu45ntld7c@awork3.anarazel.de>
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 numutils.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 somewhere
> central rather than one type's output function. OTOH, it might not be worth
> 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.
>> - Patch 0003 speeds up array_out a bit by avoiding some zero
>> byte writes. The measured speed gain is under 2%.
>
> Makes sense.
+1.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: michael@paquier.xyz, andres@anarazel.de, laurenz.albe@cybertec.at
Subject: Re: Speeding up COPY TO for uuids and arrays
In-Reply-To: <ZdLM1NdbUBArxlYo@paquier.xyz>
References: <679d5455cbbb0af667ccb753da51a475bae1eaed.camel@cybertec.at> <20240217202433.b4f3hbvu45ntld7c@awork3.anarazel.de> <ZdLM1NdbUBArxlYo@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox