Re: [PATCH 5/5] barrier: optimise by not having the hasher in a loop

2021-03-03 Thread Jonathan Wakely via Gcc-patches
On 26/02/21 07:59 -0800, Thiago Macieira via Libstdc++ wrote: Our thread's ID does not change so we don't have to get it every time and hash it every time. This looks good for GCC 11. (This one wouldn't be an ABI break to change later, but we might as well do it now, as we have the patch now).

[PATCH 5/5] barrier: optimise by not having the hasher in a loop

2021-02-26 Thread Thiago Macieira via Gcc-patches
Our thread's ID does not change so we don't have to get it every time and hash it every time. --- libstdc++-v3/include/std/barrier | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/include/std/barrier b/libstdc++-v3/include/std/barrier index ae058bd3dc3..e