hugo/tpl
Bjørn Erik Pedersen 5800a20a25 metrics: Detect partialCached candidates
This commit adds a "cache potential" column when running `hugo --templateMetrics --templateMetricsHints`.

This is only calculated when `--templateMetricsHints` is set, as these calculations has an negative effect on the other timings.

This gives a value for partials only, and is a number between 0-100 that indicates if `partial` can be replaced with `partialCached`.

100 means that all execution of the same partial resulted in the same output.

You should do  some manual research before going "all cache".
2017-10-07 18:00:07 +02:00
..
cast tpl: Add float template function 2017-09-28 16:53:18 +02:00
collections Clean up lint in various packages 2017-09-29 16:23:16 +02:00
compare
crypto
data Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
encoding
fmt tpl: Add errorf template function 2017-10-03 07:59:51 +02:00
images Clean up lint in various packages 2017-09-29 16:23:16 +02:00
inflect
internal
lang
math tpl: Add math.Ceil, Floor, and Round to method mappings 2017-09-26 08:16:24 +02:00
os tpl: Add os.fileExists template function 2017-09-28 19:52:34 +02:00
partials metrics: Detect partialCached candidates 2017-10-07 18:00:07 +02:00
safe
strings
time
tplimpl tpl: Rework the partial test and benchmarks 2017-10-07 16:53:01 +02:00
transform Use Chroma as new default syntax highlighter 2017-09-25 08:59:02 +02:00
urls
template.go metrics: Add simple template metrics feature 2017-09-26 20:03:04 +02:00