From ecee42f5615b87560b54b19049dd0662bb80eec9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 13 May 2021 20:13:04 +0200 Subject: [PATCH] Read pickle file in mmap mode --- freqtrade/optimize/hyperopt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index 534da34fc..4f8c0ea8b 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -270,7 +270,7 @@ class Hyperopt: self.backtesting.strategy.trailing_only_offset_is_reached = \ d['trailing_only_offset_is_reached'] - processed = load(self.data_pickle_file) + processed = load(self.data_pickle_file, mmap_mode='r+') bt_results = self.backtesting.backtest( processed=processed,