Github user greghogan commented on the pull request:

    https://github.com/apache/flink/pull/1115#issuecomment-139558118
  
    Stephan, while looking for the `UnionWithTempOperator` bug elsewhere, I 
noticed that `AllReduceDriver.run()`, `ReduceDriver.run()`, and 
`ReduceCombinerDriver.sortAndCombine()` locally create new objects before every 
call to `MutableObjectIterator.next(T)`. This looks to be double allocating new 
objects in the case that the `TypeSerializer` does not support object reuse.
    
    Also, `ReduceCombinerDriver.sortAndCombine.run()` is not switching on 
`objectReuseEnabled`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to