title: Why is caching values in objects taking more time?
body: <p>As I have learnt, its better to cache the values in objects which we need repeatedly. For example, doing</p>
  
  <pre><code>var currentObj = myobject.myinnerobj.innermostobj[i]
  </code></pre>
  
  <p>and using 'currentObj' for further operations is better for performance than just </p>
  
  <pre><code>myobject.myinnerobj.innermostobj[i]
  </code></pre>
  
  <p>everywhere, like say in loops.. I am told it saves the script from looking-up inside the objects every time..</p>
  
  <p>I have around 1000 lines of code, the only change I did to it with the intention of improving performance is this (at many locations) and the total time taken to execute it increased from 190ms to 230ms. Both times were checked using firebug 1.7 on Firefox 4.</p>
  
  <p>Is what I learnt true (meaning either I am overusing it or mis-implemented it)? Or are there any other aspects to it that I am unaware of..?</p>