I was just wondering if there was some list of best practices available for optimizing the rendering of large tables and/or lists.
In my application I noticed that the data is received quickly enough after the request, but that the page takes much time to appear while it is running through the {{#each}} loop.
This would be easier to maintain, and might benefit from any optimizations made by HTMLBars. (I’m not sure how Handlebars handles SafeString html updates.)
Yes you’re right. That’s exactly what I was originally doing, but resorted to the other model solution when the template solution turned out to be way too slow. Thought that I was being clever to render and cache the table rows like this, but perhaps there is a better way.
Collection view instead of the #each helper. You’ll see gains. Also, run your app in production mode since mandatory setter (dev-only feature) gives a nice perf hit.