4 ms·
> Monomorphization is necessary for the most efficient code. That is not always true. Monomorphisation also leads to code size increase, because the function i
by Jaxan 2y ago
> Monomorphization is necessary for the most efficient code.
That is not always true. Monomorphisation also leads to code size increase, because the function is compiled for each type. This may decrease cache efficiency.
- marcosdumay 2y agoRight. Monomorphization is very often a requirement for getting the most performance. But not always, and won't always increase your performance either.