Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 57647 invoked from network); 24 Oct 2007 15:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 15:05:44 -0000 Received: (qmail 16701 invoked by uid 500); 24 Oct 2007 15:05:31 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 16501 invoked by uid 500); 24 Oct 2007 15:05:30 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 16492 invoked by uid 99); 24 Oct 2007 15:05:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 08:05:30 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 15:05:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F2880714209 for ; Wed, 24 Oct 2007 08:04:50 -0700 (PDT) Message-ID: <4668765.1193238290990.JavaMail.jira@brutus> Date: Wed, 24 Oct 2007 08:04:50 -0700 (PDT) From: "Oleg Kalnichevski (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Resolved: (HTTPCLIENT-659) DateUtils should cache SimpleDateFormat In-Reply-To: <32536994.1181483425997.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-659?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-659. ------------------------------------------ Resolution: Fixed Patch checked in Oleg > DateUtils should cache SimpleDateFormat > --------------------------------------- > > Key: HTTPCLIENT-659 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-659 > Project: HttpComponents HttpClient > Issue Type: Improvement > Components: HttpCookie > Reporter: Daniel M=C3=BCller > Priority: Minor > Fix For: 4.0 Alpha 2 > > Attachments: 20071018-001-dateutils.patch, org.apache.http.util.p= atch > > > DateUtils create a SimpleDateFormat for each invocation of #formatDate an= d #parseDate. This can be optimized if SimpleDateFormat instances are cache= d. Since SimpleDateFormat is not threadsafe, the cache must be threadlocal. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org