braverock / blotter

blotter provides transaction infrastructure for defining transactions, portfolios and accounts for trading systems and simulation. Provides portfolio support for multi-asset class and multi-currency portfolios. Actively maintained and developed.
112 stars 49 forks source link

Optimise building replicate transactions #65

Closed jaymon0703 closed 6 years ago

jaymon0703 commented 6 years ago

Using a vectorised approach for the construction of the replicate transactions in txnsim.txns() we can reduce the memory required to simulate 'n' replicates. The improvement in performance will be orders of magnitude, making the simulation of 1k replicates possible in the single digit minute time space (currently ranging from 20 mins to 15 hours depending on hardware) and making feasible simulations for a greater number of replicates.

braverock commented 6 years ago

Closing as fixed.