You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
schallerdavid
changed the title
lru_cache contains hardcoded sizes
Revisit caching strategy
Aug 20, 2021
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.
Our current cache implementations rely on
functools.lru_cache
decorators, which admit asize
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".The text was updated successfully, but these errors were encountered: