3 ms·
> Not surprisingly, under all those layers of abstraction-hell, there's just a regular accumulation loop. Your dismissive answer sounds so much like the one of
by adev_ 2y ago
> Not surprisingly, under all those layers of abstraction-hell, there's just a regular accumulation loop.
Your dismissive answer sounds so much like the one of a typical old-C style programmer that underestimate by 2 order of magnitude what compiler inlining can do.
Abstraction, genericity and inlining on a function like from_chars is currently exactly what you want.
- userbinator 2y agoIt's my experience that says inlining only looks great in microbenchmarks but is absolutely horrible for cache usage and causes other things to become slower.
- adev_ 2y agoWhich is wrong on almost any modern architecture. For small size functions inlining is almost always preferable because (1) the prefetcher actually love that and (2) a cache-miss due to a mis predicted jump is way more costly than anything a bit of bloat will ever cost you.