net/http/pprof: imports html/template which causes larger binaries #41569
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
go/src/net/http/pprof/pprof.go
Line 64 in 0242d46
html/template
which causes the compiler go into conservative mode.html/template
internally usestext/template
, which in turn contains a call toMethodByName
.It seems that the
pprof
usage ofhtml/template
is trivial and could be replaced by basic string printing. Of course this means it won't be taking advantage ofhtml/template
security model.Does this sound reasonable? I can make a PR, if it does.
The text was updated successfully, but these errors were encountered: