PERF: takes ~14% off the time it takes to initialize a MinuteSimulationClock

on my machine, ~350ms -> ~300ms

also, clarifies the public API for MinuteSimulationClock (now, only
__iter__ is exposed)
This commit is contained in:
Jean Bredeche
2016-05-09 10:18:41 -04:00
parent 0687584c21
commit fe5a2a888a
2 changed files with 10 additions and 9 deletions
-1
View File
@@ -478,7 +478,6 @@ class TradingAlgorithm(object):
self.sim_params.trading_days,
market_opens,
market_closes,
env.trading_days,
minutely_emission
)
return clock