[Vm-dev] Re: Direct object pointers vs indirect ones pros and cons
javier.burroni at gmail.com
Wed Oct 26 20:11:53 UTC 2011
Igor Stasenko wrote:
> the first bench is kind-of 'measure time to access directly to objects'
> the second one is 'measure indirect access'
> and third is measure a loop overhead.
I've just arrived to this thread (thanks to Mariano), and I wanted to share
Having JIT'ed code with self (the oop of the actual object) in a register,
and selfID (the id of self in the object table) in a second register.
accessing ivar: no extra cost
one extra indirection
sends with MonomorphicInlineCache:
no extra cost if implemented in an instance basis (checking against selfID).
One indirection otherwise
Faster (due to the removal of the threading process).
View this message in context: http://forum.world.st/Direct-object-pointers-vs-indirect-ones-pros-and-cons-tp3039203p3942123.html
Sent from the Squeak VM mailing list archive at Nabble.com.
More information about the Vm-dev