2 ms·
Beside performance impact, how is it different than what is possible with virtual method (dyn dispatch)?
by kaba0 4y ago
Beside performance impact, how is it different than what is possible with virtual method (dyn dispatch)?
- svieira 4y agoOne jump vs. multiple pointer dereferences.
- munificent 4y agoVirtual dispatch makes it much harder for an optimizing compiler to inline method calls, so there is a significant performance hit even for callsites that do end up always calling the same method.