News for hackers. Stuff that matters.
Re:Mustache 2.0 and the Future of Mustache.js by tchvil on Sunday February 13, 2011 @05:14PM (#2214139)
This is valid for server side templating.

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.

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.

Re:Mustache 2.0 and the Future of Mustache.js by tchvil on Monday February 14, 2011 @12:53AM (#2215489)
My comment supposed you need to compile the templates once. In that case the whole app is compiled once in the tens msec. Not at each rendering.