Skip to content

Conversation

@ChadThackray
Copy link

@ChadThackray ChadThackray commented Nov 6, 2025

I've included here some speed enhancements from my video:
https://youtu.be/LSo4ghiAPvk

Running the SMA strategy from the README on my machine this PR gives a roughly 40% reduction in total runtime for bt.run

Tests all pass

Copy link
Owner

@kernc kernc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the late review. Some comments left ...

@ChadThackray
Copy link
Author

I believe I've addressed all the concerns you had, let me know anything I missed!

@kernc kernc force-pushed the speed-improvements2 branch from 7617d6e to 78860da Compare December 21, 2025 01:20
But keep accessors rather than stringly types.
@kernc
Copy link
Owner

kernc commented Dec 21, 2025

Apologies! At first I had a few nitpick last word ideas I didn't intend to fuss over, but then it turned out into this many. I also rebased everything on the current master, and expect to rebase again when merged. Please take a look!

I feel, even if not strictly evident from the CI run times, that this should reduce computational overhead at least of strategies with lots of trades. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants