You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/06/17 15:51:00 UTC

[jira] [Resolved] (SPARK-28066) Optimize UTF8String.trim() for common case of no whitespace

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org