>>>>> "GB" == Graham Barr <[EMAIL PROTECTED]> writes:

>> A different op would be a better performance win. Even those sections
>> that didn't want the check has to pay for it.

GB> That may not be completly true. You would in effect be increasing the
GB> size of code for perl itself. Whether or not it would be a win would
GB> depend on how many times the extra code caused a cache miss and a fetch
GB> from main memory.

GB> As Chip says, human intuition is a very bad benchmark.

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.

<chaim>
-- 
Chaim Frenkel                                        Nonlinear Knowledge, Inc.
[EMAIL PROTECTED]                                               +1-718-236-0183

Reply via email to