This should give a speedup across the board for MSVC builds.
While working on modernizing our byteswapping code for c++20, we noticed that MSVC uses our hand-written byteswap functions, as opposed to using libc/compiler versions like almost all other platforms.
aureleoules did some great benchmarks in #28674 which show that these hand-written byteswaps often compile down to a slow mess. hebasto confirmed that we’re indeed hitting these paths for MSVC.
Quick tests with godbolt show that MSVC’s provided _byteswap_*
indeed speed things up.