Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I considered using this method in {fmt} and found that its drawback compared to some alternatives is that it doesn't give you the number of digits in advance which means that you end up doing a copy. So often an optimized version of countlut from https://github.com/miloyip/itoa-benchmark performs better.
I know, I was just being lazy 😏. This is also why itoa_always_10_digits performs the best in the benchmark, while it is in fact horribly slow for realistic data. If you care, here is a benchmark with a more realistic data: https://github.com/jeaiii/itoa.
Related posts
- Whatwg-compliant and fast URL parser written in modern C++
- Function composition in modern C++
- I have made a physics simulator that replicates projectile motion with quadratic drag! Please feel free to download and compile it. Let me know of any bugs!
- Pelikan, Twitter‘s framework for building caches
- Twenty Years of Valgrind