3 ms·
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-comp
by tchvil 16y ago
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 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.
- jerf 16y ago"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.
- tchvil 16y agoMy 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.