Understanding Kendo UI Template Performance

It's not magic. Through careful performance testing, we have found that string concatenation (+=) outside of a "with" block is significantly faster than JavaScript array push/join operations in a "with" block. This helps Kendo UI Templates run as fast as possible. Additional optimizations are coming soon to make performance in a "with" block better, too.

Preparation code

<!--NOTE: Need to load from CDNJS since GitHub uses text/plain MIME type, which is blocked in IE9--><!--<script src="http://github.com/janl/mustache.js/raw/master/mustache.js"></script>--><scriptsrc="http://ajax.cdnjs.com/ajax/libs/mustache.js/0.3.0/mustache.min.js"></script>

2 comments

Why was jqote2 and doT (the reigning champs) removed from these comparisons? Naturally as a rep for Kendo UI you have an agenda, but your results would be more impressive if you compared all best options out there, without cherry picking.