[Interval Problem] 2 cents

Stephen Pope stp at create.ucsb.edu
Fri Jul 30 22:20:52 UTC 1999


PLEASE DO NOT FOLLOW THIS ADVICE!

This makes code *much* less reusable, readable, and malleable. Part of
the whole point of OO programming is to make state look like behavior.
If the speed hit of instance variable accessing is significant, you
should either use a VM that optimizes them away, or translate more of
your methods to C.

(...flame off)

stp


Andres Valloud wrote:
> 
> Hi.
> 
> I think it would be a good idea to remove the self sends from any fix,
> and replace
> 
> self someInstanceVariablePlainAccessorMethodNamedTheSame
> 
> with
> 
> theInstanceVariableItself.
> 
> Because then you start adding message sends and that is time expensive.
> 
> Andres.

-- 

Stephen Travis Pope  --  http://www.create.ucsb.edu/~stp
stp at create.ucsb.edu  --  stp9 at cornell.edu





More information about the Squeak-dev mailing list