Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 88318200B35 for ; Tue, 5 Jul 2016 17:38:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 86D13160A6F; Tue, 5 Jul 2016 15:38:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 00119160A2C for ; Tue, 5 Jul 2016 17:38:11 +0200 (CEST) Received: (qmail 21500 invoked by uid 500); 5 Jul 2016 15:38:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 21478 invoked by uid 99); 5 Jul 2016 15:38:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2016 15:38:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E814F2C027F for ; Tue, 5 Jul 2016 15:38:10 +0000 (UTC) Date: Tue, 5 Jul 2016 15:38:10 +0000 (UTC) From: "Benoit Wiart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1248) FastDatePrinter Memory allocation regression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Jul 2016 15:38:12 -0000 [ https://issues.apache.org/jira/browse/LANG-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15362652#comment-15362652 ] Benoit Wiart commented on LANG-1248: ------------------------------------ We could add a specialized version of appendFullDigits for 4 digits (year) and 3 digits (millis). > FastDatePrinter Memory allocation regression > -------------------------------------------- > > Key: LANG-1248 > URL: https://issues.apache.org/jira/browse/LANG-1248 > Project: Commons Lang > Issue Type: Bug > Components: lang.time.* > Affects Versions: 3.5 > Reporter: Benoit Wiart > > when the code was migrated from StringBuffer to Appendable in LANG-1152. > We've lost the ability to modify the buffer (setCharAt) > The new implementation of appendFullDigits allocate a temporary char array to work around that limitation. > This is a major source of memory allocation which is not present in version 3.4. -- This message was sent by Atlassian JIRA (v6.3.4#6332)