So 100kB fixed-case data tables in std::to_chars can be trivially eliminated and even the naive method is only 3x slower (which doesn't matter because it only affects "garbage" digits).
Падабаецца 0
Рэпосты 0
and the naive method is still 10x faster than whatever printf does (I guess Dragon)
Падабаецца 0
Рэпосты 0
@vitaut "naive" ... "10x faster" ... I think there is some confusion here
Падабаецца 0
Рэпосты 0
@malwareminigun It's literally a textbook conversion. printf just does something unnecessarily complicated and, in this case, inefficient
Падабаецца 0
Рэпосты 0
@vitaut There's a lot of stuff in textbooks that is not "naive".
Падабаецца 0
Рэпосты 0
@vitaut (If 1 implementation does something dumb then blame that implementation, when every implementation does something dumb I think you are just https://xkcd.com/2501/ )
xkcd
Average Familiarity
Падабаецца 0
Рэпосты 0
@malwareminigun it's not dumb per se, just more general than necessary
Падабаецца 0
Рэпосты 0