Tuesday, February 14, 2012

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey

Backbone.js: Getting The Model For A Clicked Element | ThoughtStream.new :derick_bailey: "If you’re dealing with a large number of models you may run into performance problems having to instantiate a new view for every object.  I haven’t found a good rule of thumb yet to say when you’ll run into problem, but I’m going to guess that you would need hundreds if not thousands (or more) of models and views in memory to cause serious performance problems. This is, of course, dependent on the platform your app runs on. You’ll likely have less memory in a mobile browser than a desktop browser. Either way, you’ll run into zombie problems before memory usage problems, and cleaning these up will greatly improve your app’s ability to deal with larger lists of items."

'via Blog this'