[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inlining policy
From: |
Andrea Corallo |
Subject: |
Re: Inlining policy |
Date: |
Mon, 06 Apr 2020 19:17:03 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Paul Eggert <address@hidden> writes:
> On 4/6/20 11:15 AM, Stefan Monnier wrote:
>
>> I haven't checked whether it has the same performance impact, and
>> neither do I know how it compares w.r.t. "portability/reliability", but
>> judging just from the patch, I really like it.
>>
>> Paul?
>
> Although I like the idea, it significantly hurts performance with -O0
> (GCC 9.3.1, x86-64) because it causes GCC to emit excess instructions
> to save and restore inline function arguments to the stack.
True
https://godbolt.org/z/rfKxo7
Actually I think moving the lisp_h_* into the functions could also make
these easier to debug in case. I find a little odd to optimize for
speed -O0, in the end is the exact reason why -Og exists. But I
understand there's a trade-off here.
Thanks for reviewing
Andrea
--
address@hidden
- Re: emacs rendering comparisson between emacs23 and emacs26.3, (continued)
- Re: emacs rendering comparisson between emacs23 and emacs26.3, martin rudalics, 2020/04/04
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Paul Eggert, 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, Paul Eggert, 2020/04/04
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Dmitry Gutov, 2020/04/04
- Re: emacs rendering comparisson between emacs23 and emacs26.3, martin rudalics, 2020/04/05
- Re: emacs rendering comparisson between emacs23 and emacs26.3, Paul Eggert, 2020/04/05
- 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 <=
- Re: Inlining policy, Stefan Monnier, 2020/04/06
- 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: 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