openkinome / kinoml

Structure-informed machine learning for kinase modeling
https://openkinome.org/kinoml/
MIT License
51 stars 21 forks source link

Revisit caching strategy #18

Open jaimergp opened 4 years ago

jaimergp commented 4 years ago

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 commented 2 years ago

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.