You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Weston M. Price (Commented) (JIRA)" <ji...@apache.org> on 2012/01/17 19:32:39 UTC
[jira] [Commented] (QPID-3766) Cache toString() results in Address
class for performance gain
[ https://issues.apache.org/jira/browse/QPID-3766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187862#comment-13187862 ]
Weston M. Price commented on QPID-3766:
---------------------------------------
Also, this class does not conform to the Apache naming conventions. This should be fixed as well.
> Cache toString() results in Address class for performance gain
> --------------------------------------------------------------
>
> Key: QPID-3766
> URL: https://issues.apache.org/jira/browse/QPID-3766
> Project: Qpid
> Issue Type: Improvement
> Components: Java Client
> Environment: All OS platforms.
> Reporter: Weston M. Price
> Assignee: Weston M. Price
> Priority: Trivial
> Fix For: 0.15
>
>
> Address is an immutable class with a fairly expensive toString() method. Being that this class never changes we should cache this for performance improvements when running in debug/trace mode. Our internal QA department using jProfiler identified performance gains that could be made in doing this and I can't see any reason not to do so.
--
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
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org