title: function argument vs this performance
body: <p>In Javascript, which provides more performance: </p>
  
  <ol>
  <li>Passing pointer to a large data structure as <code>argument</code> to a function</li>
  </ol>
  
  <p>OR </p>
  
  <ol start="2">
  <li>Using <code>this</code> variable to get pointer in a class structure </li>
  </ol>
  
  <p>Example:</p>
  
  <p>Option 1:</p>
  
  <pre><code>function() {
      function(Ob) {
          // do something with Ob
      };
  }
  </code></pre>
  
  <p>Option 2:</p>
  
  <pre><code>function() { // Class structure
      this.Ob = { foo: "bar" }; // bar is a big data structure 
      this.Fn = function() {
          var x = this.Ob
          // Use x 
      };
  }
  </code></pre>
  
  <p>I find Option 1 to be more readable - but Option 1 becomes too verbose once your function needs a lot of variables. </p>