Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Aug 3, 2015

We often return abstract iterator types in various sort-related classes (e.g. UnsafeKVExternalSorter). It is actually better to return a more concrete type, so the callsite uses that type and JIT can inline the iterator calls.

@SparkQA
Copy link

SparkQA commented Aug 4, 2015

Test build #39610 has finished for PR 7911 at commit 0422add.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public static final class SortedIterator extends UnsafeSorterIterator
    • public class KVSorterIterator extends KVIterator<UnsafeRow, UnsafeRow>

asfgit pushed a commit that referenced this pull request Aug 4, 2015
…sses.

We often return abstract iterator types in various sort-related classes (e.g. UnsafeKVExternalSorter). It is actually better to return a more concrete type, so the callsite uses that type and JIT can inline the iterator calls.

Author: Reynold Xin <[email protected]>

Closes #7911 from rxin/surface-concrete-type and squashes the following commits:

0422add [Reynold Xin] [SPARK-9577][SQL] Surface concrete iterator types in various sort classes.

(cherry picked from commit 5eb89f6)
Signed-off-by: Reynold Xin <[email protected]>
@asfgit asfgit closed this in 5eb89f6 Aug 4, 2015
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.

2 participants