Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B48C817DEE for ; Wed, 25 Mar 2015 09:31:59 +0000 (UTC) Received: (qmail 32818 invoked by uid 500); 25 Mar 2015 09:31:53 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 32779 invoked by uid 500); 25 Mar 2015 09:31:53 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 32770 invoked by uid 99); 25 Mar 2015 09:31:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 09:31:53 +0000 Date: Wed, 25 Mar 2015 09:31:53 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-5398) Optimize String.replaceAll() to cache Patterns where suitable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-5398: ------------------------------- Fix Version/s: (was: Future) 2.16.0 > 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)