On 16/07/2013 03:47, Marvin Humphrey wrote:
What's interesting about those results is that on the modern CPU the
micro-benchmark yields essentially identical results for C++ style fixed
offset vtable dispatch, Clownfish-style variable offset vtable dispatch, or a
saved raw function pointer, while on the older CPU the Clownfish-style
variable offset dispatch performs slightly worse.

32 vs 64 bit might also play a role here.

OK, but this will mean to add MethodSpec structs for every method of a
class. I think it's best to use separate structs for novel, overridden, and
inherited methods then.

I realize that may be a lot of code but until load-time latency becomes a
problem, I think it's an acceptable implementation strategy.

Would you like to work on this, or would you like me to take it on?

It won't be much additional code. I'll work on it.

Nick

Reply via email to