Using ujson to load ticker files from disk during backtest
is over 30% faster.
This commit is contained in:
parent
af34540450
commit
87f7d9972f
@ -164,7 +164,7 @@ def load_cached_data_for_updating(filename: str,
|
||||
# read the cached file
|
||||
if os.path.isfile(filename):
|
||||
with open(filename, "rt") as file:
|
||||
data = ujson.load(file)
|
||||
data = json.load(file)
|
||||
# remove the last item, because we are not sure if it is correct
|
||||
# it could be fetched when the candle was incompleted
|
||||
if data:
|
||||
|
Loading…
Reference in New Issue
Block a user