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

Clear invalidated medoid cache on packing #373

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Conversation

jakobnissen
Copy link
Member

Packing the indices of a ClusterGenerator shifts the meaning of the integers in its cache, invalidating it.
I suppose they could be updated in the cache, but that'd be a complex piece of code a clustering implementation which is already too complex for its own good. Instead, clear the cache when packing.

This should happen a neglible amount of times compared to how often we already clear the cache.

Packing the indices of a ClusterGenerator shifts the meaning of the integers
in its cache, invalidating it.
I suppose they could be updated in the cache, but that'd be a complex piece of
code a clustering implementation which is already too complex for its own good.
Instead, clear the cache when packing.

This should happen a neglible amount of times compared to how often we already
clear the cache.
@jakobnissen jakobnissen merged commit 6c97ece into master Nov 28, 2024
6 checks passed
@jakobnissen jakobnissen deleted the clear_cache branch November 28, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant