reuvenlax opened a new pull request, #41806:
URL: https://github.com/apache/beam/pull/41806

   Reduces per-element dispatch and allocation overhead in Dataflow worker 
SimpleParDoFn and SimpleParDoFnHelpers:
   
   SimpleParDoFn: Outlines lazyStartBundle() and processWithSideInputs() to 
keep processElement()/onProcessWindowedValue() small, and skips 
elem.getWindows() entirely on stateless DoFns.
   SimpleParDoFnHelpers: Caches hasState, isStreaming, and mainReceiverIndex 
instead of re-deriving them per element, and resets bundle state in finally on 
abort().
   OutputManager: Replaces the anonymous output manager with a dedicated class 
using reference-equality fast paths for mainOutputTag (and a deserialized 
altMainTag), a bounded per-slot identity cache (<= 8 outputs), and lazily 
allocated undeclaredOutputs.
   State cleanup: Fast-paths known GlobalWindow WindowedValue implementations 
in registerStateCleanup() without allocating/iterating elem.getWindows().
   Adds unit tests in SimpleParDoFnHelpersTest covering hasState 
lifecycle/abort cleanup, multi-output/undeclared/null-tag routing across 
bundles, and state cleanup fast paths.


-- 
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]

Reply via email to