Results 1 to 11 of 11
Jul 17, 2007, 14:06 #1
- Join Date
- Jul 2007
- 0 Post(s)
- 0 Thread(s)
here's a question about js performance:
in a function that loops several times/second, is there a performance hit when a local variable is repeatedly declared as such? i.e.
var blah = Object.doingStuff + ObjectFriend.doingOtherStuff;
assume that changes to that variable are happening in the function, and that new values in Object & ObjectFriend affect it.
does the environment think that 'blah' is a new variable *every* iteration? how could that be optimized if so?