Re: Speed up clean meson builds by ~25% - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Speed up clean meson builds by ~25%
Date
Msg-id ZhTLjP9zP_9YVcWc@paquier.xyz
Whole thread Raw
In response to Re: Speed up clean meson builds by ~25%  (Nazir Bilal Yavuz <byavuz81@gmail.com>)
Responses Re: Speed up clean meson builds by ~25%
List pgsql-hackers
On Mon, Apr 08, 2024 at 12:23:56PM +0300, Nazir Bilal Yavuz wrote:
> On Mon, 8 Apr 2024 at 11:00, Alexander Lakhin <exclusion@gmail.com> wrote:
>> As I wrote in [1], I didn't observe the issue with clang-18, so maybe it
>> is fixed already.
>> Perhaps it's worth rechecking...
>>
>> [1] https://www.postgresql.org/message-id/d2bf3727-bae4-3aee-65f6-caec2c4ebaa8%40gmail.com
>
> I had this problem on my local computer. My build times are:
>
> gcc: 20s
> clang-15: 24s
> clang-16: 105s
> clang-17: 111s
> clang-18: 25s

Interesting.  A parallel build of ecpg shows similar numbers here:
clang-16: 101s
clang-17: 112s
clang-18: 14s
gcc: 10s

Most of the time is still spent on preproc.c with clang-18, but that's
much, much faster (default version of clang is 16 on Debian GID where
I've run these numbers).
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Vectored I/O in bulk_write.c
Next
From: Heikki Linnakangas
Date:
Subject: Re: libpq.sgml: "server ejectes GSS" -> server rejects GSS