[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] configure: fix performance regression due to PIC objects
From: |
Richard Henderson |
Subject: |
Re: [PATCH] configure: fix performance regression due to PIC objects |
Date: |
Sun, 20 Sep 2020 17:41:17 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 9/19/20 8:56 AM, Paolo Bonzini wrote:
> Because most files in QEMU are grouped into static libraries, Meson
> conservatively
> compiles them with -fPIC. This is overkill and produces slowdowns up to 20%
> on
> some TCG tests.
>
> As a stopgap measure, use the b_staticpic option to limit the slowdown to
> --enable-pie. https://github.com/mesonbuild/meson/pull/7760 will allow
> us to use b_staticpic=false and let Meson do the right thing.
>
> Reported-by: Ahmed Karaman <ahmedkrmn@outlook.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> configure | 1 +
> 1 file changed, 1 insertion(+)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~