Re: Reference Variables Question

2011-03-12 Thread Stuart Sierra
Memoization gives you the option of deferring this decision 'till later. Write a function that calculates the value you need and call it each time you need that value. If it turns out that the repeated calculation is slowing down your program, simply memoize the function so that the computati

Re: Reference Variables Question

2011-03-12 Thread niels.egbe...@gmail.com
On Sat, Mar 12, 2011 at 2:18 PM, WoodHacker wrote: > We create a reference > to the block's height and use it throughout the program.   But there > are many cases where we have to know HALF the height of the block. > My question is, is it more efficient to create another reference for > half the b