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".
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".