You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (Updated) (JIRA)" <de...@myfaces.apache.org> on 2012/01/17 00:47:39 UTC

[jira] [Updated] (MYFACES-3427) [perf] Use only one StringBuilder for generate unique facelets identifiers

     [ https://issues.apache.org/jira/browse/MYFACES-3427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe updated MYFACES-3427:
------------------------------------

    Status: Patch Available  (was: Open)
    
> [perf] Use only one StringBuilder for generate unique facelets identifiers
> --------------------------------------------------------------------------
>
>                 Key: MYFACES-3427
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3427
>             Project: MyFaces Core
>          Issue Type: Improvement
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>         Attachments: MYFACES-3427-1.patch
>
>
> The code that generate unique identifiers, like UIComponentBase.getClientId() and others inside facelets are operations that are called very frequent, so it is necessary to ensure that code is as fast as possible and use few memory resources
> Also, doing some performance tests I notice Long.toString(long, radix) is too expensive. It creates a lot of unnecessary String objects.
> In practice, we should prevent create object instances in such locations, and use only one StringBuffer if possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira