Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-02-17 | all: Refactor to nonglobal Viper, i18n etc. | Bjørn Erik Pedersen | |
This is a final rewrite that removes all the global state in Hugo, which also enables the use if `t.Parallel` in tests. Updates #2701 Fixes #3016 | |||
2016-03-24 | hugolib: Some more GoLint fixes | Bjørn Erik Pedersen | |
2015-12-19 | Clean up the loop counter variables confusion in TestPageCache | Bjørn Erik Pedersen | |
See #1601 | |||
2015-12-18 | Fix 2 data races in TestPageCache | Bjørn Erik Pedersen | |
See #1601 | |||
2015-12-10 | Add copyright header to that source files that don’t have one. | Anthony Fok | |
See #1646 | |||
2015-07-23 | Fix data races in sorting and Reverse | Bjørn Erik Pedersen | |
The custom sort functions used from the templates had some subtle data race- and related issues, especially when used in the single page template. This commit fixes this by making copies and protect the read and writes with a RWMutex. The results are cached (it will typically be invoked *number of pages* times with exactly the same data). This is, not surprisingly, also faster: ``` benchmark old ns/op new ns/op delta BenchmarkSortByWeightAndReverse 14228 491 -96.55% benchmark old allocs new allocs delta BenchmarkSortByWeightAndReverse 1 0 -100.00% benchmark old bytes new bytes delta BenchmarkSortByWeightAndReverse 32 0 -100.00% ``` Fixes #1293 |