[ https://issues.apache.org/jira/browse/SPARK-28066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun resolved SPARK-28066. ----------------------------------- Resolution: Fixed Fix Version/s: 3.0.0 This is resolved via https://github.com/apache/spark/pull/24884 > Optimize UTF8String.trim() for common case of no whitespace > ----------------------------------------------------------- > > Key: SPARK-28066 > URL: https://issues.apache.org/jira/browse/SPARK-28066 > Project: Spark > Issue Type: Improvement > Components: Spark Core > Affects Versions: 2.4.3 > Reporter: Sean Owen > Assignee: Sean Owen > Priority: Minor > Fix For: 3.0.0 > > > {{UTF8String.trim()}} allocates a new object even if the string has no > whitespace, when it can just return itself. A simple check for this case > makes the method about 3x faster in the common case. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org