From 54906da143daf40604f5a22a623117ff73c89b72 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 9 Jun 2026 09:29:43 -0700 Subject: [PATCH 1/8] [dbsp] Simplify dyn_shard_accumulate(). We don't need so many special cases because `dyn_shard()` is cached, for the case where there is a sharded version already, and a no-op, for the case where there is only one worker. Signed-off-by: Ben Pfaff --- .../operator/dynamic/sharded_accumulator.rs | 69 ++++++++----------- 1 file changed, 30 insertions(+), 39 deletions(-) diff --git a/crates/dbsp/src/operator/dynamic/sharded_accumulator.rs b/crates/dbsp/src/operator/dynamic/sharded_accumulator.rs index af793f00e2e..493b49a443e 100644 --- a/crates/dbsp/src/operator/dynamic/sharded_accumulator.rs +++ b/crates/dbsp/src/operator/dynamic/sharded_accumulator.rs @@ -57,50 +57,41 @@ where where B: Batch