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

Use a class for CachedMapper-derived mappers instead of a dict #549

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

majosm
Copy link
Collaborator

@majosm majosm commented Sep 24, 2024

Adds classes to represent the caches of CachedMapper-derived mappers, which will be useful for adding array duplication checks and result deduplication (#550). Both of these features add additional cache dictionaries and cache retrieval/addition logic; this change minimizes the amount of logic that must be duplicated when mappers override rec, as well as minimizes the extra arguments that need to be passed around for function caches when cloning new mappers.

Depends on #531.

@majosm majosm force-pushed the add-cache-class branch 3 times, most recently from a34936a to 378d439 Compare September 24, 2024 18:02
This was referenced Sep 24, 2024
@majosm majosm force-pushed the add-cache-class branch 3 times, most recently from 1cf2454 to df7db39 Compare December 20, 2024 22:49
@majosm majosm force-pushed the add-cache-class branch 2 times, most recently from 7b6df30 to dec20c2 Compare January 8, 2025 16:33
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.

1 participant