1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00
Bjørn Erik Pedersen 4abaec5c04 Improve TotalWords counter func
It is obviously more efficient when we do not care about the actual words.

```
BenchmarkTotalWords-4            100000         18795 ns/op           0 B/op           0 allocs/op
BenchmarkTotalWordsOld-4          30000         46751 ns/op        6400 B/op           1 allocs/op
```
2016-09-14 10:50:56 +02:00
..
2016-09-06 18:32:20 +03:00
2016-09-06 18:32:18 +03:00
2016-09-12 20:59:03 +02:00
2016-09-12 20:59:03 +02:00
2016-09-08 16:51:32 +03:00
2016-09-14 10:50:56 +02:00
2016-09-12 10:56:16 +02:00
2016-09-06 18:32:18 +03:00
2016-09-06 18:32:18 +03:00
2016-09-08 21:23:01 +02:00
2016-09-08 21:23:01 +02:00
2016-09-12 20:59:03 +02:00