]> Cypherpunks repositories - gostls13.git/commit
exp/template/html: avoid redundant escaping directives.
authorMike Samuel <mikesamuel@gmail.com>
Fri, 30 Sep 2011 04:31:41 +0000 (21:31 -0700)
committerMike Samuel <mikesamuel@gmail.com>
Fri, 30 Sep 2011 04:31:41 +0000 (21:31 -0700)
commitb0cddb98b9b29c9a153bae83095d5f13cbcc4bda
treeb5455ea476c912009b53f3466c4576cad5c17fff
parent585294db73b35f5c2992f433739b1e2ac0c8f231
exp/template/html: avoid redundant escaping directives.

This is a possible optimization.  I'm not sure the complexity is worth it.
The new benchmark in escape_test is 46us without and 35us with the optimization.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5168041
src/pkg/exp/template/html/escape.go
src/pkg/exp/template/html/escape_test.go