On Thursday, 3 September 2015 at 22:48:47 UTC, deadalnix wrote:
On Thursday, 3 September 2015 at 21:01:10 UTC, Ola Fosheim Grostad wrote:Huh? Dynamic languages have dynamic lookup, how is that different from virtual functions?Maybe because you need 2 map lookups + 1 indirection instead of an array lookup in addition of the indirect call.But who know, with a vectorized SSA, it surely will be faster than light.
obj.f is not slower than obj.v[5] on the contrary, it is faster