You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We find the cache method to be quite useful, however, it's quite memory inefficient for caching single items since even when passing a capacity of 1, it will create an unbounded replay subject rather than one that actually has size 1.
Memory pressure being a major concern on Android, how would everyone feel about adding more overloads/alternatives to cache that take a size, not just a capacity? e.g.:
Observable.cacheWithSize(1)
which would call ReplaySubject.createWithSize internally, using a BoundedState?
The text was updated successfully, but these errors were encountered:
Actually, nevermind, I think I misread ReplaySubject. This only seems to have an effect on the eviction strategy, so using an "unbounded" replay subject with capacity 1 should be what we want?
We find the
cache
method to be quite useful, however, it's quite memory inefficient for caching single items since even when passing a capacity of 1, it will create an unbounded replay subject rather than one that actually has size 1.Memory pressure being a major concern on Android, how would everyone feel about adding more overloads/alternatives to
cache
that take a size, not just a capacity? e.g.:Observable.cacheWithSize(1)
which would call ReplaySubject.createWithSize internally, using a BoundedState?
The text was updated successfully, but these errors were encountered: