title: Optimization of render datatables
body: <p>I'm using jQuery datatables and client-side rendering.</p>
  
  <p>With the code below I'm trying to replace <code>{{number}}</code> by array elements and it does work as expected.</p>
  
  <p>In PHP I have:</p>
  
  <pre><code>&lt;?php
  $returnTmp2['test'] = array(100,'/Home/','Home');
  return $returnTmp2;
  ?&gt;
  </code></pre>
  
  <p>I'm trying to replace the dynamic values by the mRender-function of Datatables:</p>
  
  <pre><code>$datatableContent['render'] = '&lt;a href="{{1}}{{0}}/"&gt;{{2}}&lt;/a&gt;';
  </code></pre>
  
  <p>I'd like to have this output:</p>
  
  <pre><code>&lt;a href="/Home/100/"&gt;Home&lt;/a&gt;
  </code></pre>
  
  <p>The trouble is the huge load time when I've got plenty of rows (more than 20 secs).
  Do you know any method to optimalise the code in the picture below?</p>
  
  <p><a href="https://i.stack.imgur.com/PYJoK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PYJoK.png" alt=""></a></p>
  
  <p><strong><em>Update</em></strong></p>
  
  <p>Complete code visible at: <a href="http://pastebin.com/RHTv0S5N" rel="nofollow noreferrer">http://pastebin.com/RHTv0S5N</a></p>