You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benoit Wiart (JIRA)" <ji...@apache.org> on 2016/07/05 15:38:10 UTC
[jira] [Commented] (LANG-1248) FastDatePrinter Memory allocation
regression
[ 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)