On Wed, Nov 17, 2004 at 04:13:04PM -0800 Ed Wright wrote: > You should consider checking if declaring variables as 'register' helps > runtime performance. It seems recent compilers have evolved to the > stage that 'register' provides no particular advantage.
That could easily be. I was never able to come up with a benchmark that would confirm a benefit of 'register'. But then it doesn't hurt either. It's certainly one of the cheapest optimizations. :-) And as 'register' has become a habit for me over the years, there's one subjective reason why I'll probably stick with it: I only mark variables as register when they are accessed and possibly altered frequently in a function. In that they have a certain documentary value to me. I instantly see that this variable is probably meant to be a counter or loop variable. Tassilo -- $_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({ pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#; $_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval