YYKI opened a new pull request, #30198:
URL: https://github.com/apache/flink/pull/30198

   > Re-opening of #28514. That PR was closed by the stale bot 
(`github-actions[bot]`) after 120 days of inactivity. As it was not closed by 
the author, it can no longer be reopened without committer access, so the same 
branch is re-submitted here. The earlier review discussion is on #28514.
   >
   > @davidradl could you please take another look when you have time? Thanks!
   
   ## What is the purpose of the change
   
   - In the in-operator-chain data copy transmission (the default scenario with 
massive temporary segment creation), isFreedAtomic is never used, resulting in 
meaningless object allocation; reduce redundant AtomicBoolean allocation in 
MemorySegment to improve construction performance
   - End-to-end benchmark (Nexmark): The overall job throughput is improved, 
verifying the effectiveness of the optimization in real streaming scenarios. 
delivering an average performance improvement of 1.8%
   
   ## Brief change log
   
   - Replace the member variable final AtomicBoolean isFreedAtomic with a 
primitive boolean isFreed; 
   - Add the synchronized modifier to the free() method to ensure the atomicity 
and thread safety of the free state judgment and modification;
   
   
   ## Verifying this change
   This change is already covered by existing tests, such as 
*MemorySegmentTestBase*.
   
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (no)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (yes )
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs 
/ not documented)


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