ASP.net: Repeater vs. Dynamic Creation of Table vs. StringBuilder - Performance question
<p>The problem: My company currently has a query that takes roughly 3 seconds to run, but the table creation to display the data takes roughly 30 seconds to loop through. Most of it is simply:</p>

<pre><code>Dim MainTable as New Table
Dim TableR as New TableRow
Dim TableC as New TableCell
TableCell.Text = "Some data"
TableRow.Controls.Add(TableC)
MainTable.Controls.Add(TableR)
</code></pre>

<p>Now, the performance of this operation is about 30 seconds on roughly 550 records. I tried changing the process to using Strings instead:</p>

<pre><code>Builder.Append("&lt;tr&gt;&lt;td&gt;Something&lt;/td&gt;&lt;/tr&gt;")
</code></pre>

<p>But there was no real improvement. My question is in regards to trying to improve the performance. </p>

<p>Would a repeater actually be faster?</p>
