camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henryk Konsek (JIRA)" <>
Subject [jira] [Reopened] (CAMEL-5398) Optimize String.replaceAll() to cache Patterns where suitable
Date Wed, 27 Jun 2012 06:01:46 GMT


Henryk Konsek reopened CAMEL-5398:

After playing more with CAMEL-5396, I come with conclusion that we could benefit from Pattern.compile()
optimization in some cases.

I'm reopening this issue - I'll take a closer look at each individual case.
> Optimize String.replaceAll() to cache Patterns where suitable
> -------------------------------------------------------------
>                 Key: CAMEL-5398
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.11
> 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]

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message