SteveSanderson/knockout — Issue #272: inline templates should perform as well as or better than named templates
Author: mbest
Created: 2012-01-12 08:35:36+00:00
State: open

With the current implementation, inline (anonymous) templates perform more poorly than named templates (especially for templates within templates).

The main problem with making inline templates perform better is that they don't have a unique name. A simple solution would be to allow the user to provide a unique identifier as part of the template binding (or as a separate binding) that would be used to index the template (instead of using the element object as is done now):

or