Bytecode question: the send instruction

Benoit St-Jean bstjean at yahoo.com
Tue May 13 14:04:21 UTC 2003


--- Alexandre Bergel <bergel at iam.unibe.ch> wrote:
> By reading the green book, I have some question
> related the send bytecode (page 210):
>  - "Approximately every third instruction is a
> message send and sends requiring dictionary lookups
> occur every 6.667 bytecodes. Of the sends needing
> dictionary searches, 36.64% invoked primitives, and
> the rest resulted in the execution of a Smalltalk
> method which, along with process switches, accounted
> for a context switch every 6.50 bytecodes."
>  - "... 78.92% are arithmetic and logical
> operations..."
> 
> This article was made in 1982, I would like to know
> it these proportion are still equivalent nowadays.
> 
> A bit related to this, what is the effect of the
> method cache? In the average, what is the % of the
> method found in the cache?
> 
> I heard once that only 1/10th of the message send
> are really polymorphic, and the rest is
> mono-morphic. 

A good place to start would be to post that on
comp.lang.smalltalk...  My guess is that Eliot Miranda
could have a lot of those stats handy...  :)

=====
-----------------
Benoit St-Jean
Yahoo! Messenger: bstjean
A standpoint is an intellectual horizon of radius zero. -- Albert Einstein



More information about the Squeak-dev mailing list