Re: [PATCH] prepare kconfig inline optimization for all architectures

Linus Torvalds
2008-04-27T18:31:38Z

On Sun, 27 Apr 2008, Christoph Hellwig wrote:
>
> Actually looking at older code in the tree he's most likely wrong :)
> Probably as bad as the compiler. But the nice part about the code is
> that we can fix it easily.

Good point.

It *would* be really interesting to have some way to check our assumptions
(both ways - warn about over-large inlines and small-and-hot non-inlines).

I considered making sparse give some size estimate for inlines and warn
about ones that generate a lot of code, but I was never able to do it
sanely.

Linus