You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As std::to_string, to_dstring produces a string from a number. A key
feature is that dstrings for values <=64 are pre-computed; generating
strings for such numbers is 50x faster than going via std::to_string.
int main()
{
for(unsigned i=0; i<20000000; i++)
{
dstringt d;
int j=20;
d=dstringt(std::to_string(j));
}
}
This is 2.5s as above, and 0.05s with to_dstring.
0 commit comments