jquery - fastest way to remove all rows from a very large table
It's better to avoid any kind of loops, just remove all elements directly like this:
$("#mytable > tbody").html("");
$("#myTable > tbody").empty();
It won't touch the headers.
$("#your-table-id").empty();
That's as fast as you get.