hugo/resources/page
Bjørn Erik Pedersen cdcd15b6c2
Only create LazyContentProvider for the non-rendering Site
Which saves a fair amound of allocations:

```
gobench --package ./hugolib --bench "SiteNew/Regular_D" --base master
```

Before:

```
name                                  old time/op    new time/op    delta
SiteNew/Regular_Deep_content_tree-10    40.7ms ± 3%    41.2ms ± 1%    ~     (p=0.343 n=4+4)

name                                  old alloc/op   new alloc/op   delta
SiteNew/Regular_Deep_content_tree-10    27.7MB ± 0%    28.8MB ± 0%  +3.76%  (p=0.029 n=4+4)

name                                  old allocs/op  new allocs/op  delta
SiteNew/Regular_Deep_content_tree-10      304k ± 0%      329k ± 0%  +8.07%  (p=0.029 n=4+4)
```

After:

```
name                                  old time/op    new time/op    delta
SiteNew/Regular_Deep_content_tree-10    34.2ms ± 1%    34.7ms ± 1%    ~     (p=0.114 n=4+4)

name                                  old alloc/op   new alloc/op   delta
SiteNew/Regular_Deep_content_tree-10    27.7MB ± 0%    28.1MB ± 0%  +1.38%  (p=0.029 n=4+4)

name                                  old allocs/op  new allocs/op  delta
SiteNew/Regular_Deep_content_tree-10      304k ± 0%      314k ± 0%  +3.03%  (p=0.029 n=4+4)
```

Updates #8919
2022-01-12 07:45:53 +01:00
..
page_generate Make the deprecated Page/File methods (from Hugo 0.55) ERROR 2022-01-04 17:10:39 +01:00
pagemeta
page.go Misc depreation updates 2022-01-04 17:10:39 +01:00
page_author.go
page_data.go
page_data_test.go
page_kinds.go
page_kinds_test.go
page_lazy_contentprovider.go Only create LazyContentProvider for the non-rendering Site 2022-01-12 07:45:53 +01:00
page_marshaljson.autogen.go Misc depreation updates 2022-01-04 17:10:39 +01:00
page_matcher.go Misc depreation updates 2022-01-04 17:10:39 +01:00
page_matcher_test.go
page_nop.go Misc depreation updates 2022-01-04 17:10:39 +01:00
page_outputformat.go
page_paths.go
page_paths_test.go
page_wrappers.autogen.go Make the deprecated Page/File methods (from Hugo 0.55) ERROR 2022-01-04 17:10:39 +01:00
pagegroup.go
pagegroup_test.go
pages.go
pages_cache.go
pages_cache_test.go
pages_language_merge.go
pages_prev_next.go
pages_prev_next_test.go
pages_related.go
pages_related_test.go
pages_sort.go
pages_sort_search.go
pages_sort_search_test.go
pages_sort_test.go
pages_test.go
pagination.go
pagination_test.go
permalinks.go
permalinks_test.go
site.go Add hugo.Deps 2022-01-11 18:06:23 +01:00
testhelpers_test.go Misc depreation updates 2022-01-04 17:10:39 +01:00
weighted.go
zero_file.autogen.go Make the deprecated Page/File methods (from Hugo 0.55) ERROR 2022-01-04 17:10:39 +01:00