reuvenlax opened a new pull request, #41804: URL: https://github.com/apache/beam/pull/41804
Description: Pre-resolves single-output/single-counter dispatch fields in Dataflow worker OutputReceiver to avoid per-element iterator allocations, array indirections, and bounds checks on the common 1-receiver / 1-counter hot path: Maintains singleOutput / multipleOutputs and singleCounter / multipleCounters on addOutput and addOutputCounter, compacting out null receivers while preserving getReceiverCount() and getOnlyReceiver() semantics. Outlines multi-counter and multi-output loops to keep process() small and inlinable. Returns a defensive copy from getOutputCounters() so external mutations cannot desync dispatch state. Adds unit tests in OutputReceiverTest covering null-output skipping, multi-counter replacement/ordering, defensive map copies, and exception handling. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
