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

Cache refactor #829

Merged
merged 3 commits into from Feb 20, 2019
Merged

Cache refactor #829

merged 3 commits into from Feb 20, 2019

Conversation

bmcfee
Copy link
Member

@bmcfee bmcfee commented Feb 20, 2019

Reference Issue

Fixes #795

What does this implement/fix? Explain your changes.

This PR restructures the cache class (and submodule) in two ways:

  • The cache module has been moved to _cache, and the singleton object no longer overrides the module in the system namespace.
  • The cache class no longer extends from joblib.Memory, which should save us from future API compatibility issues like joblib 0.12 causes TypeError at import #729

Any other comments?

This should have no apparent effects to 99% of users. The only users who may experience problems are those who depend on librosa.cache being an instance of joblib.Memory; in those cases, the memory object can be accessed directly by librosa.cache.memory.

I've tested locally, and all the timing examples from the documentation still work as expected. As long as CI passes, I see no need for CR.


This change is Reviewable

@bmcfee bmcfee added the API change Does this change the behavior of existing API? label Feb 20, 2019
@bmcfee bmcfee added this to the 0.7.0 milestone Feb 20, 2019
@bmcfee bmcfee self-assigned this Feb 20, 2019
Copy link
Member Author

@bmcfee bmcfee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 16 of 16 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@bmcfee bmcfee merged commit c7d5558 into master Feb 20, 2019
@bmcfee bmcfee deleted the cache-refactor branch February 20, 2019 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API change Does this change the behavior of existing API?
Development

Successfully merging this pull request may close these issues.

Refactor CacheManager
1 participant