Re: [PATCH 1/2][libstdc++]: Add inline keyword to _M_locate

2024-12-13 Thread Jonathan Wakely
N.B. All libstdc++ patches should be sent to the libstdc++ list (not just to the names in the MAINTAINERS file). On Sat, 14 Dec 2024 at 01:01, Jonathan Wakely wrote: > > On Fri, 13 Dec 2024 at 17:12, Tamar Christina wrote: > > > > Hi All, > > > > In GCC 12 there was a ~40% regression in the perf

Re: [PATCH 1/2][libstdc++]: Add inline keyword to _M_locate

2024-12-13 Thread Jonathan Wakely
On Fri, 13 Dec 2024 at 17:12, Tamar Christina wrote: > > Hi All, > > In GCC 12 there was a ~40% regression in the performance of hashmap->find. > > This regression came about accidentally: > > Before GCC 12 the find function was small enough that IPA would inline it even > though it wasn't marked

[PATCH 1/2][libstdc++]: Add inline keyword to _M_locate

2024-12-13 Thread Tamar Christina
Hi All, In GCC 12 there was a ~40% regression in the performance of hashmap->find. This regression came about accidentally: Before GCC 12 the find function was small enough that IPA would inline it even though it wasn't marked inline. In GCC-12 an optimization was added to perform a linear sear