26 ms·
>While in C++ world you'd use templates or in Rust you'd use traits, which are essentially zero cost, guaranteed. Templates create more code If the code becom
by benibela 4y ago
>While in C++ world you'd use templates or in Rust you'd use traits, which are essentially zero cost, guaranteed.
Templates create more code
If the code becomes too large to fit in the cache, it becomes very slow
- pkolaczk 4y agoSomehow I never noticed it happening in practice. In all the cases where cache was the problem, it was caused by data, not code. CPUs prefetch the code into cache quite well.