Replies: 1 comment
-
As Elastic product use Mustache template engine, which we may consider to use to provide consistency. Is to be noted that from the benchmark Mustache provides half the performances of We may want to re-evaluate the benchmark for our use case to provide more appropriate data. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This tool currently uses 2 different template engines:
placeholder
, a custom, in house developed templategotext
, the Golangtext/template
packageIn PR #40 we evaluated different template engines:
placeholder
,jetHTML
,hero
,text/template
. (results available in the linked PR)We decided to move forward with 2 template engines:
placeholder
allows for unmatched performances, as it does not provide any control flow operationgotext
is the second most (non precompiled) performant and maintained template engine available from this benchmarkjetHTML
has been discarded as the version with high performance from the benchmark was an older and unmaintained version.hero
has been discarded due to the complexity of using it with dynamic templates. More details in the Outcome section of the linked PR.Thanks to how the different templates are implemented, adding additional templates is possible.
Beta Was this translation helpful? Give feedback.
All reactions