itoa icon indicating copy to clipboard operation
itoa copied to clipboard

Fast integer to ascii / integer to string conversion

Results 5 itoa issues
Sort by recently updated
recently updated
newest added

https://github.com/jeaiii/itoa/blob/84f25b835c8bbcf69eb97802216f8095bf94ef13/include/itoa/jeaiii_to_text.h#L150 all 9 digits numbers should be handled above (and ~4/10ths of the 10 digits numbers) so this should be like: https://github.com/jeaiii/itoa/blob/84f25b835c8bbcf69eb97802216f8095bf94ef13/include/itoa/jeaiii_to_text.h#L209-L213

I believe this should be faster than the current version. In my own benchmark, it indeed was fast by a small amount. I think changing the mask bits from 24...

I wanted to see how hard it might be to extend this to get fixed length zero-padded responses. The other use-case is slightly less common but it can be often...

See https://github.com/MoarVM/MoarVM/pull/1800. Obviously there's lots of overhead, but the readme mentioned a 25% speedup for the new version, and I'm seeing nowhere near that (with gcc 13.2.1 in linux, compiling...