Skip to content

fanout processor: defer pdata clone to dispatch time #1905

@lalitb

Description

@lalitb

Description:

Currently the fanout processor clones pdata for all destinations upfront during register_inflight. This wastes allocations when:

  • Sequential mode: only one destination is active at a time
  • Fallbacks: may never be triggered if origin succeeds

Optimization: Defer clone+subscribe to dispatch_ready, cloning only when a destination is actually dispatched

.
Originally posted by @lalitb in #1878 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions