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

Cache kwh date range #607

Closed
wants to merge 2 commits into from
Closed

Cache kwh date range #607

wants to merge 2 commits into from

Conversation

ldodds
Copy link
Collaborator

@ldodds ldodds commented Oct 9, 2023

During running of alerts and other calculations we make repeated calls to kwh_date_range often with the same dates and types.

This PR adds a cache of precalculated values to the AMRData class to remove the need for repeated calculations. This is primarily intended to reduce CPU overheads of recalculating values rather than increase speed.

@ldodds
Copy link
Collaborator Author

ldodds commented Oct 11, 2023

May re-open this later.

@ldodds ldodds closed this Oct 11, 2023
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