Skip to content

Conversation

@antiguru
Copy link
Member

Previously, we'd first clone the changes to be sent downstream before
converting them to a vector. This can cause two allocations, one for
cloning the change batch, and one for the to_vec call (it takes self by
reference). This change adjusts it so that we convert the SmallVec into a
vector (into_vec).

Signed-off-by: Moritz Hoffmann [email protected]

Previously, we'd first clone the changes to be sent downstream before
converting them to a vector. This can cause two allocations, one for
cloning the change batch, and one for the `to_vec` call (it takes self by
reference). This change adjusts it so that we convert the SmallVec into a
vector (`into_vec`).

Signed-off-by: Moritz Hoffmann <[email protected]>
@frankmcsherry frankmcsherry merged commit ec97bc2 into TimelyDataflow:master Jan 16, 2025
7 checks passed
@github-actions github-actions bot mentioned this pull request Jan 16, 2025
@antiguru antiguru deleted the progcaster_allocation branch January 16, 2025 12:20
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.

2 participants