Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Dec 1, 2014

The current version of getCallSite visits the collection of StackTraceElement twice. However, it is unnecessary since we can perform our work with a single visit. We also do not need to keep filtered StackTraceElement.

@JoshRosen
Copy link
Contributor

Jenkins, this is ok to test.

@SparkQA
Copy link

SparkQA commented Dec 1, 2014

Test build #23994 has finished for PR 3532 at commit e741017.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@viirya
Copy link
Member Author

viirya commented Dec 1, 2014

Style is fixed. Please test again.

@SparkQA
Copy link

SparkQA commented Dec 1, 2014

Test build #23996 has finished for PR 3532 at commit 62aa124.

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

@JoshRosen
Copy link
Contributor

This looks good to me (most of the diff is just an indentation change), so I'm going to merge this to master (1.3.0). Thanks!

Just out of curiosity, what motivated this change? Did you notice a performance issue here?

@asfgit asfgit closed this in d7fc69a Dec 19, 2014
@viirya
Copy link
Member Author

viirya commented Dec 19, 2014

Thanks. I found that getCallSite is called in many places. So I am curious about its implementation details. Then I thought it can be more efficient. I have not really tested its performance but as we can reduce the number of times of visiting the collection of StackTraceElement. It should be faster slightly.

@viirya viirya deleted the refactor_getCallSite branch December 27, 2023 18:16
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