Re:Hero – A handy, fast and powerful Go template engine
by junke on Tuesday February 14, 2017 @06:23AM
(#13642745)
Yes, "compile/load/execute" can take longer than simply "eval". You have to consider amortized costs: how often do you need to recompile your template (or your regex)? Likewise, are you really going to override the template at runtime or is the variable part of the template already compiled as branches in the resulting code? Whatever needs to be dynamic can be dynamic while compiling as much as possible ahead of time.
[ Parent
| on HN ]
There are no comments on this comment yet.