Related to #1024 and #3805 but not a duplicate.
In DevCom-10402949, a user has suggested using the divide-by-100 approach (already used by Ryu/<charconv>
) to print digits faster. (Note: Due to licensing concerns, please DO NOT refer to libstdc++'s implementation linked by the DevCom suggestion.) They have also suggested calling memcpy()
for 2 bytes, although I find this surprising and would want to confirm via benchmarking.