[ 
https://issues.apache.org/jira/browse/SPARK-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14582691#comment-14582691
 ] 

Tarek Auel commented on SPARK-8301:
-----------------------------------

Another approach could be:

(0 until b.length).forall((i) => b(i) == bytes(i))

In theory this could be parallelised,

> Improve UTF8String substring/startsWith/endsWith/contains performance
> ---------------------------------------------------------------------
>
>                 Key: SPARK-8301
>                 URL: https://issues.apache.org/jira/browse/SPARK-8301
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Reynold Xin
>            Priority: Critical
>
> Many functions in UTF8String are unnecessarily expensive.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to