Open untoreh opened 1 year ago
Backtester is fast, but produces a lot of garbage, which forces short, but not negligible hiccups during multiple backtesting runs, so here is a possible solution for a garbage minimize events structure:
empty!
ed, just no operations like pop!
or insert!
)sizehint!
to correctly size the journals, which should avoid constant de/allocations for trades/orders, or at least minimize them since the trades/orders structures would be ephemereal
backtest
openat,closeat,etc...
that could be memoizedgetproperty
for asset instances and strategies or replace all dot accessors within SimMode with somegetfield
wrapper function. Because the getproperty accessor is slower than getfield if it is customizedwatchers
CcxtTrade
,CcxtTicker
), in cases where full parsing is not required, the python data should be parsed more lazilyother
copyto!
(starting from Data)Period
withFixedPeriod
to see if union splitting improves performance