Re:Mustache 2.0 and the Future of Mustache.js
by jerf on Sunday February 13, 2011 @09:02PM
(#2214929)
"And the tens milliseconds you will save if you pre-compile the template"
Ten milliseconds here, ten milliseconds there, pretty soon you're talking about real time. Especially if I can manage to browser-cache away the page & js load time you mention.
In the browser you will not render thousand times a template. And the tens milliseconds you will save if you pre-compile the template is irrelevant compared to the hundreds milliseconds of network latency and page & js load time.
I wrote http://beebole.com/pure another template engine. With the version-2 we dropped the pre-compilation. The small performance gain wasn't worth the complexity.