Skip to content

Conversation

@StephanEwen
Copy link
Contributor

I made a few adjustments to the code:

  1. The map driver now also supports this ;-)
  2. In the merge iterator (merges sorted runs from external sort), we now always use the non-reusing code path, because the reusing code path here implies in all cases additional instances to be held concurrently, and copy between elements, which voids the benefits of reusing elements.
  3. For many utility iterators (in test cases), I consolidated the logic between the two variants of the "next()" functions (one calls the other, where possible)
  4. I eliminated a few copies between elements in the non-reusing parts (where possible)
  5. I threw out unused variables in the non-reusing variants (mainly serializers previously used to create instance or copy between instances)
  6. Threw out some unused types
  7. I tried to improve generic type safety (fewer raw types)

aljoscha and others added 4 commits January 7, 2015 19:16
This is in preparation for configurable object-reuse mode. We previously
referred to this as mutable object vs. mutable object safe mode or some
such thing.
 - The map driver now also supports this

 - In the merge iterator (merges sorted runs from external sort), we now always use the non-reusing code path,
   because the reusing codepath here implies in all cases additional instances to be held concurrently, and copy
   between elements, which voids the benefits of reusing elements.

 - For many utility iterators (in test cases), consolidates the logic between the two variants of the "next()"
   functions (one calls the other, where possible)

 - Eliminates a few copies between elements in the non-reusing parts (where possible)

 - Removes unused variables in the non-reusing variants (mainly serializers previously used to create instance
   or copy between instances)

 - Remove some unused types

 -  Improves generic type safety (fewer raw types)
@aljoscha
Copy link
Contributor

aljoscha commented Jan 8, 2015

+1 I had a look over it, looks good.

The map driver I really forgot... and it's the easiest operator to port. 🙈

@asfgit asfgit merged commit 26c9819 into apache:master Jan 8, 2015
@StephanEwen StephanEwen deleted the switch_fix branch January 8, 2015 15:03
zhijiangW pushed a commit to zhijiangW/flink that referenced this pull request Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants