Mercurial > piecrust2
changeset 1017:3c669bb9498e
bake: Don't cheat when profiling.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 29 Nov 2017 20:41:09 -0800 |
parents | c4cfbbeed72e |
children | 3c6e6e7b9639 |
files | piecrust/commands/builtin/baking.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/commands/builtin/baking.py Wed Nov 29 20:38:15 2017 -0800 +++ b/piecrust/commands/builtin/baking.py Wed Nov 29 20:41:09 2017 -0800 @@ -75,6 +75,9 @@ import gc gc.collect() logger.info("---- %d/%d ----" % (i + 1, num_iter)) + # Don't cheat -- the app instance caches a bunch of stuff + # so we need to create a fresh one. + ctx.app = ctx.appfactory.create() try: records = self._doBake(ctx, out_dir)