Skip to content

Holding Subscription object doubles memory usage #6115

Answered by cartant
ingun37 asked this question in Q&A
Discussion options

You must be logged in to vote

What version of RxJS? I can see an issue that I ought to address in the v7 implementation, but just to be clear, you're talking about holding a subscription to an observable that has either completed, errored or was explicitly unsubscribed, right? Whether or not you hold a subscription to an observable that is currently subscribed will make no difference - except in some degenerate case in which you subscribe to an observable that does nothing and you hold no reference to it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ingun37
Comment options

@cartant
Comment options

cartant Mar 12, 2021
Collaborator

Answer selected by ingun37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants