Re: [committed] libstdc++: Optimize std::any_cast by replacing indirect call

2021-06-04 Thread Jonathan Wakely via Gcc-patches
Apparently my mailer decided to sent this email as From: Tim, rather than me. Sorry for any confusion. The patch is from Tim, but the email to the lists was sent by me (jwakely). Hopefully this one will have the right From: header on it! On 04/06/21 18:02 +0100, Tim Adye wrote: This significan

[committed] libstdc++: Optimize std::any_cast by replacing indirect call

2021-06-04 Thread Tim Adye
This significantly improves the performance of std::any_cast, by avoiding an indirect call to the _S_manage function through a function pointer. Before we make that indirect call we've already established that the contained value has the expected type, which means we also know the manager type, and