Read pickle file in mmap mode

This commit is contained in:
Matthias 2021-05-13 20:13:04 +02:00
parent 1055862bc0
commit ecee42f561

View File

@ -270,7 +270,7 @@ class Hyperopt:
self.backtesting.strategy.trailing_only_offset_is_reached = \ self.backtesting.strategy.trailing_only_offset_is_reached = \
d['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( bt_results = self.backtesting.backtest(
processed=processed, processed=processed,