Re: Speed up clean meson builds by ~25%
От
Peter Eisentraut
Тема
Re: Speed up clean meson builds by ~25%
Дата
Msg-id
a52065e0-799c-4f7a-a39f-21966ef0e330@eisentraut.org
Ответ на
Re: Speed up clean meson builds by ~25% (Jelte Fennema-Nio)
Список
Дерево обсуждения
[MASSMAIL]Speed up clean meson builds by ~25% Jelte Fennema-Nio <me@jeltef.nl>
Re: Speed up clean meson builds by ~25% Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Speed up clean meson builds by ~25% Andres Freund <andres@anarazel.de>
Re: Speed up clean meson builds by ~25% Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Speed up clean meson builds by ~25% Peter Eisentraut <peter@eisentraut.org>
Re: Speed up clean meson builds by ~25% Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Speed up clean meson builds by ~25% Michael Paquier <michael@paquier.xyz>
Re: Speed up clean meson builds by ~25% Alexander Lakhin <exclusion@gmail.com>
Re: Speed up clean meson builds by ~25% Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Speed up clean meson builds by ~25% Alexander Lakhin <exclusion@gmail.com>
Re: Speed up clean meson builds by ~25% Nazir Bilal Yavuz <byavuz81@gmail.com>
Re: Speed up clean meson builds by ~25% Michael Paquier <michael@paquier.xyz>
Re: Speed up clean meson builds by ~25% Thomas Munro <thomas.munro@gmail.com>
Re: Speed up clean meson builds by ~25% Andres Freund <andres@anarazel.de>
Re: Speed up clean meson builds by ~25% Andres Freund <andres@anarazel.de>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Andres Freund <andres@anarazel.de>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Andres Freund <andres@anarazel.de>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Andres Freund <andres@anarazel.de>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Thomas Munro <thomas.munro@gmail.com>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Thomas Munro <thomas.munro@gmail.com>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Peter Eisentraut <peter@eisentraut.org>
Re: Speed up clean meson builds by ~25% Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Andres Freund <andres@anarazel.de>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Robert Haas <robertmhaas@gmail.com>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Robert Haas <robertmhaas@gmail.com>
Re: Speed up clean meson builds by ~25% Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Speed up clean meson builds by ~25% Tom Lane <tgl@sss.pgh.pa.us>
Re: Speed up clean meson builds by ~25% Peter Eisentraut <peter@eisentraut.org>
On 05.04.24 18:19, Jelte Fennema-Nio wrote: > On Fri, 5 Apr 2024 at 17:24, Andres Freund wrote: >> I recommend opening a bug report for clang, best with an already preprocessed >> input file. > >> We're going to need to do something about this from our side as well, I >> suspect. The times aren't great with gcc either, even if not as bad as with >> clang. > > Agreed. While not a full solution, I think this patch is still good to > address some of the pain: Waiting 10 seconds at the end of my build > with only 1 of my 10 cores doing anything. > > So while this doesn't decrease CPU time spent it does decrease > wall-clock time significantly in some cases, with afaict no downsides. I have tested this with various compilers, and I can confirm that this shaves off about 5 seconds from the build wall-clock time, which represents about 10%-20% of the total time. I think this is a good patch. Interestingly, if I apply the analogous changes to the makefiles, I don't get any significant improvements. (Depends on local circumstances, of course.) But I would still suggest to keep the makefiles aligned.
В списке pgsql-hackers по дате отправления