Skip to content

[SQL] Minor: Avoid calling Seq#size in a loop #3593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

aarondav
Copy link
Contributor

@aarondav aarondav commented Dec 4, 2014

Just found this instance while doing some jstack-based profiling of a Spark SQL job. It is very unlikely that this is causing much of a perf issue anywhere, but it is unnecessarily suboptimal.

Just found this instance while doing some jstack-based profiling of a Spark SQL job. It is very unlikely that this is causing much of a perf regression anywhere, but it is unnecessarily suboptimal.
@SparkQA
Copy link

SparkQA commented Dec 4, 2014

Test build #24119 has started for PR 3593 at commit 962cdfc.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 4, 2014

Test build #24119 has finished for PR 3593 at commit 962cdfc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24119/
Test PASSed.

@rxin
Copy link
Contributor

rxin commented Dec 4, 2014

LGTM. Merging in master & branch-1.2.

asfgit pushed a commit that referenced this pull request Dec 4, 2014
Just found this instance while doing some jstack-based profiling of a Spark SQL job. It is very unlikely that this is causing much of a perf issue anywhere, but it is unnecessarily suboptimal.

Author: Aaron Davidson <[email protected]>

Closes #3593 from aarondav/seq-opt and squashes the following commits:

962cdfc [Aaron Davidson] [SQL] Minor: Avoid calling Seq#size in a loop

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

4 participants