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

DM-43771: disable warping kernel caching and make sure we do PSF-evaluation caching. #50

Merged
merged 2 commits into from Apr 16, 2024

Conversation

TallJimbo
Copy link
Member

No description provided.

# to evaluate the PSF twice, which is more than enough since many don't
# evaluate it at all, and there's no *good* reason for any algorithm to
# evaluate it more than once.
exposure.psf.setCacheCapacity(2 * len(self.config.measurement.plugins.names))
Copy link
Member

Choose a reason for hiding this comment

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

Is the rationale for 2 here is to cache the resulting image from calling computeImage and computeKernelImage?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, those are already separate caches, so they effectively already have that factor of two. I'm just being defensive against plugins doing more PSF evaluations than they probably should.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, yes. Right!

@TallJimbo TallJimbo merged commit dac1af8 into main Apr 16, 2024
3 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-43771 branch April 16, 2024 18:55
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

2 participants