Re: std::includes performance tweak

2020-06-19 Thread Jonathan Wakely via Gcc-patches
On 19/06/20 12:17 +0100, Jonathan Wakely wrote: On 19/06/20 12:49 +0200, Marc Glisse wrote: Anyway, while I blame the compiler for not generating very good code with the current implementation, I believe the change can be seen as a simplification and should be pushed to master. It regtests

Re: std::includes performance tweak

2020-06-19 Thread Jonathan Wakely via Gcc-patches
On 19/06/20 12:49 +0200, Marc Glisse wrote: Hello, I am proposing a small tweak to the implementation of __includes, which in my application saves 20% of the running time. I noticed it because using range-v3 was giving unexpected performance gains. The unified diff is attached, but let me

std::includes performance tweak

2020-06-19 Thread Marc Glisse
Hello, I am proposing a small tweak to the implementation of __includes, which in my application saves 20% of the running time. I noticed it because using range-v3 was giving unexpected performance gains. The unified diff is attached, but let me first show a more readable context diff.