Re: Instance vars, local vars and speed

2008-08-04 Thread Michael Ash
On Mon, Aug 4, 2008 at 7:26 AM, Trygve Inda <[EMAIL PROTECTED]> wrote: > I am transitioning some code from Carbon to Cocoa and redesigning a lot of > how things work. I am doing a bit of low-level pixel manipulation and > wondering about speed of access to variables declared in a method vs those >

Re: Instance vars, local vars and speed

2008-08-04 Thread David Wilson
On Mon, Aug 4, 2008 at 9:16 AM, Trygve Inda <[EMAIL PROTECTED]> wrote: >> IMHO, this is just premature optimisation. >> >> That said, there is no cost to access an ivar using the 32 bits >> runtime, and I don't think the cost on 64 bits runtime is important >> enough to bother with it. >> > > This

Re: Instance vars, local vars and speed

2008-08-04 Thread Trygve Inda
> > IMHO, this is just premature optimisation. > > That said, there is no cost to access an ivar using the 32 bits > runtime, and I don't think the cost on 64 bits runtime is important > enough to bother with it. > This is what I was trying to determine. Thanks. Trygve _

Re: Instance vars, local vars and speed

2008-08-04 Thread Negm-Awad Amin
Am Mo,04.08.2008 um 14:51 schrieb Jean-Daniel Dupas: Le 4 août 08 à 13:26, Trygve Inda a écrit : I am transitioning some code from Carbon to Cocoa and redesigning a lot of how things work. I am doing a bit of low-level pixel manipulation and wondering about speed of access to variables dec

Re: Instance vars, local vars and speed

2008-08-04 Thread Jean-Daniel Dupas
Le 4 août 08 à 13:26, Trygve Inda a écrit : I am transitioning some code from Carbon to Cocoa and redesigning a lot of how things work. I am doing a bit of low-level pixel manipulation and wondering about speed of access to variables declared in a method vs those declared at the object lev

Instance vars, local vars and speed

2008-08-04 Thread Trygve Inda
I am transitioning some code from Carbon to Cocoa and redesigning a lot of how things work. I am doing a bit of low-level pixel manipulation and wondering about speed of access to variables declared in a method vs those declared at the object level. Obviously things like x,y loop counters are loca