Re: Speed up clean meson builds by ~25%

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Subject: Re: Speed up clean meson builds by ~25%
Date: 2024-04-08 09:00:00
Message-ID: 4cd2ec84-609c-e701-75d1-0153b2c10b57@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Jelte,

08.04.2024 11:36, Jelte Fennema-Nio wrote:
> On Mon, 8 Apr 2024 at 10:00, Alexander Lakhin <exclusion(at)gmail(dot)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...
> Using the attached script I got these timings. Clang is significantly
> slower in all of them. But especially with -Og the difference between
> is huge.
>
> gcc 11.4.0: 7.276s
> clang 18.1.3: 17.216s
> gcc 11.4.0 --debug: 7.441s
> clang 18.1.3 --debug: 18.164s
> gcc 11.4.0 --debug -Og: 2.418s
> clang 18.1.3 --debug -Og: 14.864s
>
> I reported this same issue to the LLVM project here:
> https://github.com/llvm/llvm-project/issues/87973

Maybe we're talking about different problems.
At [1] Thomas (and then I) was unhappy with more than 200 seconds
duration...

https://www.postgresql.org/message-id/CA%2BhUKGLvJ7-%3DfS-J9kN%3DaZWrpyqykwqCBbxXLEhUa9831dPFcg%40mail.gmail.com

Best regards,
Alexander

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2024-04-08 09:08:29 Re: remaining sql/json patches
Previous Message Jelte Fennema-Nio 2024-04-08 08:59:17 Re: Speed up clean meson builds by ~25%