Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Quick fix to ensure cache descriptors always return deferreds #6263

Merged
merged 3 commits into from
Oct 29, 2019

Conversation

erikjohnston
Copy link
Member

This is just a quick fix that wraps non-deferred results in deferreds when we return from the descriptors. We should/could also rip out the code that causes the underlying caches to swap out the ObservableDeferreds for unwrapped results, but that is more fiddly and invasive (and I don't know how this effects memory usage of caches).

I don't know how this effects CPU performance.

@erikjohnston erikjohnston marked this pull request as ready for review October 29, 2019 11:35
@erikjohnston erikjohnston requested a review from a team October 29, 2019 11:35
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm, although the docstring on CacheListDescriptor says that the wrapped function can return an immediate result, which is now untrue.

@erikjohnston erikjohnston merged commit 561133c into develop Oct 29, 2019
@erikjohnston erikjohnston deleted the erikj/caches_return_deferreds branch January 9, 2020 15:47
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '561133c3c':
  Update docstring
  Newsfile
  Quick fix to ensure cache descriptors always return deferreds
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants