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

Refactor the storage and access of cached elements #608

Merged
merged 3 commits into from
Mar 6, 2023

Conversation

davidhassell
Copy link
Collaborator

There was nothing particularly wrong with the original code, but the upcoming PR on CFA needs more performant and flexible approach.

@davidhassell davidhassell added this to the Next release milestone Mar 5, 2023
Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

The change from 'nth_element' to index value representing the element's array position is very sensible (and natural, not sure why neither of us picked up on that as a better way in the original implementation!).

I've raised a few questions and minor comments but otherwise everything is good to go, so please consider those and then merge when ready. Thanks.

cf/data/data.py Outdated Show resolved Hide resolved
cf/data/data.py Outdated Show resolved Hide resolved
cf/data/data.py Show resolved Hide resolved
davidhassell and others added 2 commits March 6, 2023 14:24
Co-authored-by: Sadie L. Bartholomew <[email protected]>
Co-authored-by: Sadie L. Bartholomew <[email protected]>
Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

(Confirming that all feedback has been adequately addressed, and this is ready to merge in my eyes.)

@davidhassell davidhassell merged commit 26bdd50 into NCAS-CMS:main Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants