When adding data, MainLog computation becomes really time-consuming.
Three ways to improve this:
- Only compute on new Apla data then append it to the old MainLog.
- Filter instruments' time index by interval of min and max of new Apla.
- Find a more efficient way to create the
data_synthesis() by instrument than row-wise operation or speed it up with some C++ magic.
Another way related to point 2: check if instrument is present at ANY time within the min-max time interval of new Apla, then fill with T or F. Definitely less robust but may be sufficient in most use cases, have to think about it.
When adding data, MainLog computation becomes really time-consuming.
Three ways to improve this:
data_synthesis()by instrument than row-wise operation or speed it up with some C++ magic.Another way related to point 2: check if instrument is present at ANY time within the min-max time interval of new Apla, then fill with T or F. Definitely less robust but may be sufficient in most use cases, have to think about it.