mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
4ef9baf5bd
Note that this is backed by a LRU cache (which we soon shall see more usage of), so if you're a heavy user of cached partials it may be evicted and refreshed if needed. But in most cases every partial is only invoked once. This commit also adds a timeout (the global `timeout` config option) to make infinite recursion in partials easier to reason about. ``` name old time/op new time/op delta IncludeCached-10 8.92ms ± 0% 8.48ms ± 1% -4.87% (p=0.016 n=4+5) name old alloc/op new alloc/op delta IncludeCached-10 6.65MB ± 0% 5.17MB ± 0% -22.32% (p=0.002 n=6+6) name old allocs/op new allocs/op delta IncludeCached-10 117k ± 0% 71k ± 0% -39.44% (p=0.002 n=6+6) ``` Closes #4086 Updates #9588 |
||
---|---|---|
.. | ||
page_generate | ||
pagemeta | ||
integration_test.go | ||
page.go | ||
page_author.go | ||
page_data.go | ||
page_data_test.go | ||
page_kinds.go | ||
page_kinds_test.go | ||
page_lazy_contentprovider.go | ||
page_marshaljson.autogen.go | ||
page_matcher.go | ||
page_matcher_test.go | ||
page_nop.go | ||
page_outputformat.go | ||
page_paths.go | ||
page_paths_test.go | ||
page_wrappers.autogen.go | ||
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 | ||
taxonomy.go | ||
testhelpers_test.go | ||
weighted.go | ||
zero_file.autogen.go |