Skip to content

4.x: Cache/Replay operators to be more GC friendly #7912

Description

@akarnokd

⚠️ Due to the unexpectedly long time this issue was up, we require you to target 4.x first and we'll see if it is worth backporting it to an earlier version.

The current implementations of the various cache and replay operators and hot sources can hold onto effectively unreachable elements longer than necessary, causing GC pressure with certain collectors.

The following operators need to be checked and updated.

  • ObservableCache
  • FlowableCache
  • ObservableReplay
  • FlowableReplay
  • ReplaySubject
  • ReplayProcessor

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions