[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
- Re: emacs rendering comparisson between emacs23 and emacs26.3, (continued)
- Inlining policy (was: emacs rendering comparisson between emacs23 and emacs26.3), Andrea Corallo, 2020/04/05
- Re: Inlining policy, Stefan Monnier, 2020/04/06
- Re: Inlining policy, Paul Eggert, 2020/04/06
- Re: Inlining policy, Andrea Corallo, 2020/04/06
- Re: Inlining policy, Stefan Monnier, 2020/04/06
- Re: Inlining policy, Paul Eggert, 2020/04/08
- Re: Inlining policy,
Andrea Corallo <=
- Re: Inlining policy, Paul Eggert, 2020/04/08
- Re: Inlining policy, Andrea Corallo, 2020/04/08
- Re: Inlining policy, Paul Eggert, 2020/04/08
- Re: Inlining policy, Andrea Corallo, 2020/04/08
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Alan Mackenzie, 2020/04/03
- Re: emacs rendering comparisson between emacs23 and emacs26.3, martin rudalics, 2020/04/04
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Alan Mackenzie, 2020/04/04
- Re: emacs rendering comparisson between emacs23 and emacs26.3, martin rudalics, 2020/04/04
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Eli Zaretskii, 2020/04/04
- Re: emacs rendering comparisson between emacs23 and emacs26.3, martin rudalics, 2020/04/05