https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110167

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> The "obvious" alternative impl using a lambda expression is even slower:

Actually for GCC 13 it's faster:

$ time ~/gcc/13/bin/g++ 110167.cc -c -O3 

real    0m9.422s
user    0m9.232s
sys     0m0.170s

$ time ~/gcc/13/bin/g++ 110167.cc -c -O3  -DUSE_LAMBDA

real    0m6.403s
user    0m6.342s
sys     0m0.048s

So that's nice.

Reply via email to