At 12:05 PM 8/8/00 -0400, Chaim Frenkel wrote:
>Does the cache hit/miss depend on the nearness of the code or simply
>on code path? Obviously having the checked version be a wrapper of
>the base op and near it on the same page would be a VM win.
Code path, usually. Nearness is only an issue up to the cache line size,
and that's normally not all that big. Getting code loaded in as a
side-effect's nice, but it'll be swamped by the win you get from the third
and subsequent hit of the cached code.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk