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

Oded Peer commented on CASSANDRA-8755:
--------------------------------------

Java's String.split() method has a fast-path for single character input, 
avoiding costly regexp creation. See http://stackoverflow.com/a/11002374/248656.

> Replace trivial uses of String.replace/replaceAll/split with StringUtils 
> methods
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8755
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8755
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Jaroslav Kamenik
>            Priority: Trivial
>              Labels: lhf
>         Attachments: trunk-8755.patch
>
>
> There are places in the code where those regex based methods are  used with 
> plain, not regexp, strings, so StringUtils alternatives should be faster.



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

Reply via email to