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

Revisit caching strategy #18

Open
jaimergp opened this issue Aug 5, 2020 · 1 comment
Open

Revisit caching strategy #18

jaimergp opened this issue Aug 5, 2020 · 1 comment

Comments

@jaimergp
Copy link
Collaborator

jaimergp commented Aug 5, 2020

Our current cache implementations rely on functools.lru_cache decorators, which admit a size keyword with the number of items to memoize. We can customize this (now hardcoded) value if we drop the decorator syntax sugar and decorate the memoized methods at __init__ "manually".

@schallerdavid schallerdavid changed the title lru_cache contains hardcoded sizes Revisit caching strategy Aug 20, 2021
@schallerdavid
Copy link
Contributor

To prevent writing to the same file at the time in our manual caching of the structural modeling featurizers, one could change the multiprocessing behavior by making processes start at slightly different times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants