Skip to content

Several instances of .clone() removed.#805

Merged
frankmcsherry merged 7 commits into
masterfrom
clone_nips
Jun 12, 2026
Merged

Several instances of .clone() removed.#805
frankmcsherry merged 7 commits into
masterfrom
clone_nips

Conversation

@frankmcsherry

Copy link
Copy Markdown
Member

No description provided.

frankmcsherry and others added 7 commits June 12, 2026 14:54
Replaces a clone per capability drop with mem::replace against
T::minimum(); relevant for timestamp types with allocations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Resolves the in-code TODO: cloning toured a spurious increment and
decrement through progress tracking per delivered notification. The
available collection is a heap, so swap_remove's order disruption is
harmless.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ChangeBatch::into_inner yields a SmallVec, which to_vec element-copies.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The puller yields an owned, already deserialized message, so we may
drain it rather than clone each update. The comment now records that a
zero-copy receive path would hand back a borrowed view, returning this
to clones.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The operator core never reads its summary again; cloning retained a
copy inside the boxed schedulable for the dataflow's lifetime.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Internal capability updates moved their freshly drained time already in
the consumed case; do the same for internals, and let the final edge of
the produceds fan-out take the time by move.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PerOperatorState::internal_summary is never read after graph assembly;
moving it out avoids cloning every operator's connectivity and releases
the retained copies for the dataflow's lifetime.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@frankmcsherry frankmcsherry merged commit b506318 into master Jun 12, 2026
9 checks passed
@frankmcsherry frankmcsherry deleted the clone_nips branch June 12, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant