Re: [PATCH 4/7] libstdc++: Remove indirection to __find_if in std::find etc.

2024-10-16 Thread Patrick Palka
ZOn Tue, 15 Oct 2024, Jonathan Wakely wrote: > Tested x86_64-linux. > > -- >8 -- > > There doesn't seem to be a lot of benefit in reusing __find_if with > __gnu_cxx::__ops predicates, since they aren't going to actually > instantiate any less code if we use different predicates every time > (e.g

Re: [PATCH 4/7] libstdc++: Remove indirection to __find_if in std::find etc.

2024-10-15 Thread Jonathan Wakely
On 15/10/24 15:20 +0100, Jonathan Wakely wrote: Tested x86_64-linux. -- >8 -- There doesn't seem to be a lot of benefit in reusing __find_if with __gnu_cxx::__ops predicates, since they aren't going to actually instantiate any less code if we use different predicates every time (e.g. __ops::__n

[PATCH 4/7] libstdc++: Remove indirection to __find_if in std::find etc.

2024-10-15 Thread Jonathan Wakely
Tested x86_64-linux. -- >8 -- There doesn't seem to be a lot of benefit in reusing __find_if with __gnu_cxx::__ops predicates, since they aren't going to actually instantiate any less code if we use different predicates every time (e.g. __ops::__negate, or __ops::__iter_equals_val, or __ops::__pr