[jboss-jira] [JBoss JIRA] Updated: (JBCOMMON-88) Cache the toString() representation of GUID

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Thu Aug 20 17:52:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBCOMMON-88?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated JBCOMMON-88:
-------------------------------------

        Summary: Cache the toString() representation of GUID  (was: Cache the toString() representation of GUID, VMID, UID)
    Description: The toString() operations on the GUID class is expensive and the result is immutable once the object is constructed. So cache the result in a transient field.  (was: The toString() operations on these classes are expensive and the result is immutable once the object is constructed. So cache the result in a transient field.)


Changed to limit this to GUID where I know there is a use case. Don't want to add memory overhead to potentially numerous objects w/o known benefit.

> Cache the toString() representation of GUID
> -------------------------------------------
>
>                 Key: JBCOMMON-88
>                 URL: https://jira.jboss.org/jira/browse/JBCOMMON-88
>             Project: JBoss Common
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: common-core (2.x)
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>
> The toString() operations on the GUID class is expensive and the result is immutable once the object is constructed. So cache the result in a transient field.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list