You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/03/25 10:32:53 UTC

[jira] [Commented] (CAMEL-5398) Optimize String.replaceAll() to cache Patterns where suitable

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

Claus Ibsen commented on CAMEL-5398:
------------------------------------

I am optimizing the parts in camel-core that is relevant.

> Optimize String.replaceAll() to cache Patterns where suitable
> -------------------------------------------------------------
>
>                 Key: CAMEL-5398
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5398
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Henryk Konsek
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.16.0
>
>
> Inspired by issue [1] regarding performance of JMS headers, I performed a little search in IDE and found out that there's pretty much not optimized String.replaceAll() calls.
> I think it will be good to search the code base for such calls again and replace them with references to the static pre-compiled java.util.regex.Patterns. Of course if such action makes sense (like in StringHelper#removeQuotes()).
> [1] https://issues.apache.org/jira/browse/CAMEL-5396



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