std::includes performance tweak

Jonathan Wakely
Fri Jun 19 12:04:27 GMT 2020

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 fine.
>>2020-06-20  Marc Glisse  <>
>>	* include/bits/stl_algo.h (__includes): Simplify the code.
>>(as with the patch for std::optional, I still haven't worked on my 
>>ssh key issue and cannot currently push)
>Thanks, I'll take care of it (and the std::optional one which I still
>haven't done).

Pushed to master as r11-1554 465520e3eb45d83ad18394aa537150bfa6bdf117

Thanks again.

More information about the Libstdc++ mailing list