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 <postgres@jeltef.nl>) |
Ответы |
Re: Speed up clean meson builds by ~25%
|
Список | pgsql-hackers |
On 05.04.24 18:19, Jelte Fennema-Nio wrote: > On Fri, 5 Apr 2024 at 17:24, Andres Freund <andres@anarazel.de> 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 по дате отправления: