From 102707cf30d893c4f4e7120b69ae9e40241a453f Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 20 Jun 2019 15:46:49 +0800 Subject: [PATCH] [Mod]change load history data cache size --- vnpy/app/cta_strategy/backtesting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/app/cta_strategy/backtesting.py b/vnpy/app/cta_strategy/backtesting.py index 45a1c48e..fa7a725e 100644 --- a/vnpy/app/cta_strategy/backtesting.py +++ b/vnpy/app/cta_strategy/backtesting.py @@ -1189,7 +1189,7 @@ def ga_optimize(parameter_values: list): return _ga_optimize(tuple(parameter_values)) -@lru_cache(maxsize=10) +@lru_cache(maxsize=999) def load_bar_data( symbol: str, exchange: Exchange, @@ -1203,7 +1203,7 @@ def load_bar_data( ) -@lru_cache(maxsize=10) +@lru_cache(maxsize=999) def load_tick_data( symbol: str, exchange: Exchange,