playframework/playframework — pull request #2151 by matthew-lucidchart (2013-12-10 21:39:23+00:00)
Title: Optimize templates. fixes #2033.

Use a single StringBuilder for building template output (as opposed to many string builders appending each other up the tree).
Don't create collections for single items in template source.
Change Appendable's definition to support single StringBuilder.