Re: [PATCH 0/7] minmax: reduce compilation time
From: Jens Axboe
Date: Fri Jul 26 2024 - 17:46:55 EST
On 7/26/24 3:36 PM, Linus Torvalds wrote:
> Now, fixing that, and you end up with
>
> Longest line is 61861 (82kB)
>
> so it's now "only" 82kB in size, and that actually comes from
> <linux/bio.h>, which has this:
>
> static inline unsigned bio_segments(struct bio *bio)
> {
> ...
> bio_for_each_segment(bv, bio, iter)
> segs++;
>
> which looks very tame indeed, but it turns out that
> "bio_for_each_segment()" expands to 82kB of code.
>
> Jens? Maybe time to look into this?
Eek yes, that looks horrible. I'll take a look.
--
Jens Axboe