From: Andres Freund <andres@anarazel.de>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Some remaining htonl() and ntohl() calls in the code
Date: Wed, 14 Oct 2020 13:41:23 -0700
Message-ID: <20201014204123.vcewobvt3bp4jr7h@alap3.anarazel.de> (raw)
In-Reply-To: <20201014055303.GG3349@paquier.xyz>
References: <20201014055303.GG3349@paquier.xyz>
Hi,
On 2020-10-14 14:53:03 +0900, Michael Paquier wrote:
> Since 510b8cbf, we have in-core equivalents for htonl(), ntohl() & co
> through pg_bswap.h that allows to compile with a built-in function if
> the compiler used has one.
>
> All the existing calls in the code tree have been changed with
> 0ba99c84 for performance reasons (except the libpq examples), however
> the FE/BE code of GSSAPI encryption code did not get this call in
> b0b39f7. I think that we had better switch to the built-ins functions
> as well for this case. The argument of consistency matters here, but
> also perhaps the argument of performance, where it may not be easy to
> measure a difference.
+1
Greetings,
Andres Freund
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: andres@anarazel.de, michael@paquier.xyz
Subject: Re: Some remaining htonl() and ntohl() calls in the code
In-Reply-To: <20201014204123.vcewobvt3bp4jr7h@alap3.anarazel.de>
References: <20201014055303.GG3349@paquier.xyz> <20201014204123.vcewobvt3bp4jr7h@alap3.anarazel.de>
* 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