emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inlining policy


From: Andrea Corallo
Subject: Re: Inlining policy
Date: Wed, 08 Apr 2020 18:28:36 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Paul Eggert <address@hidden> writes:

> On 4/5/20 3:23 AM, Andrea Corallo wrote:
>> what about having a new macro to control the key operations we want to
>> always have inlined at -O0 and -Og instead of falling back into defining
>> these as macros?
>
> I looked into this some more, and found some problems with using
> __attribute__((always_inline)), such as GCC complaining that it can't
> inline some functions in some cases on some platforms. It was a pain
> to suss out what would improve performance while avoiding the
> warnings, and while fiddling with this a bit I found a simpler change
> that had even better performance than __attribute__((always_inline))
> did, at least on one platform for my standard benchmark of 'make
> compile-always'. So I installed the two attached patches
> instead. Together they improve Emacs CPU performance for 'gcc -Og' by
> about 60% on my benchmark.

Is this a problem you have experienced compiling one of our builds or
something you have found can potentially happen in general?  Anyway
should be easy to ask GCC to silence the specific warning in case.

> Thanks for suggesting inlining as a way to improve Emacs performance
> when compiled with -Og.

Welcome

Andrea

--
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]