comparison piecrust/data/builder.py @ 989:8adc27285d93

bake: Big pass on bake performance. - Reduce the amount of data passed between processes. - Make inter-process data simple objects to make it easier to test with alternatives to pickle. - Make sources have the basic requirement to be able to find a content item from an item spec (path). - Make Hoedown the default Markdown formatter.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Nov 2017 14:29:17 -0800
parents 74f4bde40fd0
children 501bd4ab7e06
comparison
equal deleted inserted replaced
988:f83ae0a5d793 989:8adc27285d93
66 providers_data = DataProvidersData(page) 66 providers_data = DataProvidersData(page)
67 67
68 # Put the site data first so that `MergedMapping` doesn't load stuff 68 # Put the site data first so that `MergedMapping` doesn't load stuff
69 # for nothing just to find a value that was in the YAML config all 69 # for nothing just to find a value that was in the YAML config all
70 # along. 70 # along.
71 data = MergedMapping([site_data, data, providers_data]) 71 data = MergedMapping([site_data, data, providers_data],
72 stats=app.env.stats)
72 73
73 # Do this at the end because we want all the data to be ready to be 74 # Do this at the end because we want all the data to be ready to be
74 # displayed in the debugger window. 75 # displayed in the debugger window.
75 if (app.config.get('site/show_debug_info') and 76 if (app.config.get('site/show_debug_info') and
76 not app.config.get('baker/is_baking')): 77 not app.config.get('baker/is_baking')):