One way to buy back performance would be to make templates return TemplateIO objects rather than strings or htmltext objects. TemplateIO objects could just reference their data rather than copying it. I suspect that it would bite people a lot less often than the current not-quite-string behavior of htmltext. Opinions? Neil