hugo/hugolib
Bjørn Erik Pedersen dd45e6d7e5 Lazy calculate WordCount, ReadingTime and FuzzyWordCount
This avoids having to execute these expensive operations for sites not using these values.

This commit sums up a set of wordcounting and autosummary related performance improvements.

The effect of these kind of depends on what features your site use, but a benchmark from 4 Hugo sites in the wild shows promise:

```
benchmark           old ns/op       new ns/op       delta
BenchmarkHugo-4     21293005843     20032857342     -5.92%

benchmark           old allocs     new allocs     delta
BenchmarkHugo-4     65290922       65186032       -0.16%

benchmark           old bytes      new bytes      delta
BenchmarkHugo-4     9771213416     9681866464     -0.91%
```

Closes #2378
2016-09-14 10:57:39 +02:00
..
author.go
benchmark_test.go
config.go
config_test.go
datafiles_test.go
embedded_shortcodes_test.go
handler_base.go
handler_file.go
handler_meta.go
handler_page.go
handler_test.go
hugo_info.go
hugo_sites.go
hugo_sites_test.go Add Language.LanguageName 2016-09-12 20:59:03 +02:00
i18n.go
media.go
menu.go
menu_test.go
multilingual.go Add Language.LanguageName 2016-09-12 20:59:03 +02:00
node.go
node_test.go
page.go Lazy calculate WordCount, ReadingTime and FuzzyWordCount 2016-09-14 10:57:39 +02:00
page_permalink_test.go
page_taxonomy_test.go
page_test.go Lazy calculate WordCount, ReadingTime and FuzzyWordCount 2016-09-14 10:57:39 +02:00
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go hugolib: Fix typos in tests 2016-09-12 10:56:16 +02:00
pageSort.go
pageSort_test.go Lazy calculate WordCount, ReadingTime and FuzzyWordCount 2016-09-14 10:57:39 +02:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go
pagination_test.go Lazy calculate WordCount, ReadingTime and FuzzyWordCount 2016-09-14 10:57:39 +02:00
path_separators_test.go
path_separators_windows_test.go
permalinks.go
permalinks_test.go
planner.go
redis.cn.md
robotstxt_test.go
rss_test.go
scratch.go
scratch_test.go
shortcode.go Fix shortcode vs pygments 2016-09-08 21:23:01 +02:00
shortcode_test.go Fix shortcode vs pygments 2016-09-08 21:23:01 +02:00
shortcodeparser.go
shortcodeparser_test.go
site.go Support site menu per language 2016-09-12 20:59:03 +02:00
site_show_plan_test.go
site_test.go Lazy calculate WordCount, ReadingTime and FuzzyWordCount 2016-09-14 10:57:39 +02:00
site_url_test.go
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
summary.go
taxonomy.go
taxonomy_test.go
translations.go