commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Wiart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1248) FastDatePrinter Memory allocation regression
Date Wed, 06 Jul 2016 06:55:11 GMT

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

Benoit Wiart commented on LANG-1248:
------------------------------------

???
I don't want to limit appendFullDigits to 4 or 3 digits !
I want to implement fast path for 4 and 3 digits (there's already such implementations for
1 and 2 digits)

> 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)

Mime
View raw message