The Messaging Function checking the Cache

This slide shows the message send method examining the cache, which is represented as a two dimensional table with row values being indicated by the hash function, and columns for the current class, the message selector, and a pointer to the method to execute.

The message sending funciton compares the selector to the entry in the cache, and if they match the method can be executed directly. Otherwise the dynamic search is performed.

[audio] [real] Text to accompany slide13, in Chapter 21 of An Introduction to Object-Oriented Programming