Skip to content

Instantly share code, notes, and snippets.

@1Marc
Last active December 12, 2015 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1Marc/4770007 to your computer and use it in GitHub Desktop.
Save 1Marc/4770007 to your computer and use it in GitHub Desktop.
Pseudocode demonstrating inefficient rendering
// Pseudocode demonstrating inefficient rendering
var $list = $('#list');
var dataset = data; // array of 1000 objects
for (var i = 0; i < dataset.length; i++) {
var view = new ItemView({model: dataset[i]});
$list.append(view.render().el);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment