Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvements related to static_indicators #70

Merged
merged 3 commits into from
Nov 23, 2023
Merged

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Nov 23, 2023

Having static_indicator as a property "hides" that it recreates a new element each time.

I have simplified the logic by removing duplicated code and updated get_indices_by_position to no longer use self.static_indicator.data. Instead, it now uses the already available data.

Also, change static_indicator to a normal method and only create indicators once.

@hoxbro hoxbro merged commit 14ea907 into main Nov 23, 2023
15 checks passed
@hoxbro hoxbro deleted the performance branch November 23, 2023 14:36
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.

None yet

1 participant