You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yadong Qi (JIRA)" <ji...@apache.org> on 2015/09/12 16:29:46 UTC

[jira] [Comment Edited] (SPARK-9213) Improve regular expression performance (via joni)

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

Yadong Qi edited comment on SPARK-9213 at 9/12/15 2:29 PM:
-----------------------------------------------------------

[~rxin] I'm working on this, and already created a pull request as you seen.


was (Author: waterman):
[~rxin] I'm working on this, and already have a pull request as you seen.

> Improve regular expression performance (via joni)
> -------------------------------------------------
>
>                 Key: SPARK-9213
>                 URL: https://issues.apache.org/jira/browse/SPARK-9213
>             Project: Spark
>          Issue Type: Umbrella
>          Components: SQL
>            Reporter: Reynold Xin
>
> I'm creating an umbrella ticket to improve regular expression performance for string expressions. Right now our use of regular expressions is inefficient for two reasons:
> 1. Java regex in general is slow.
> 2. We have to convert everything from UTF8 encoded bytes into Java String, and then run regex on it, and then convert it back.
> There are libraries in Java that provide regex support directly on UTF8 encoded bytes. One prominent example is joni, used in JRuby.
> Note: all regex functions are in https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringOperations.scala



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

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