liuzqt opened a new pull request, #42095: URL: https://github.com/apache/spark/pull/42095
### What changes were proposed in this pull request? Optimize several critical code path in `TreeNode.generateTreeString` ### Why are the changes needed? In `TreeNode.generateTreeString`, we observed inefficiency in scala collection operations and virtual function call in our internal workload. This inefficiency become significant in large plan (we hit a example of more than 1000 nodes). So it’s worth optimizing the super hot code path. By rewriting into native Java code(not so sweet as scala syntax sugar though), we should be able to get rid of most of the overhead. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing UTs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
