hugo/helpers
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
..
configProvider.go Make it possible to configure Blackfroday per language 2016-09-06 18:32:17 +03:00
content.go Lazy calculate WordCount, ReadingTime and FuzzyWordCount 2016-09-14 10:57:39 +02:00
content_renderer.go Add TODO list support for Blackfriday 2016-09-09 13:08:20 +02:00
content_renderer_test.go Add TODO list support for Blackfriday 2016-09-09 13:08:20 +02:00
content_test.go Lazy calculate WordCount, ReadingTime and FuzzyWordCount 2016-09-14 10:57:39 +02:00
emoji.go helpers: Fix bug in emoji renderer 2016-08-30 00:34:48 +02:00
emoji_test.go helpers: Fix bug in emoji renderer 2016-08-30 00:34:48 +02:00
general.go Reset the i18n func map on reload 2016-09-08 17:18:11 +03:00
general_test.go helpers: Remove ToReader funcs 2016-06-25 17:57:05 -05:00
hugo.go Make it the DEV version 2016-09-06 23:20:59 +03:00
hugo_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
language.go Add Language.LanguageName 2016-09-12 20:59:03 +02:00
path.go Replace some leftover os.Stat with hugofs.Source 2016-09-11 20:00:38 +02:00
path_test.go Handle symlink change event 2016-09-11 20:00:38 +02:00
pygments.go helpers: Ignore cache for Pygments when flag set 2016-04-10 20:55:57 +02:00
pygments_test.go Apply gofmt -s 2016-02-06 13:09:52 +01:00
url.go helpers: Improve the language prefix logic 2016-09-13 23:44:16 +02:00
url_test.go helpers: Avoid adding language prefix if already present 2016-09-13 21:37:27 +02:00