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 (Resolved) (JIRA)" <ji...@apache.org> on 2012/01/18 02:25:39 UTC
[jira] [Resolved] (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:all-tabpanel ]
Weston M. Price resolved QPID-3766.
-----------------------------------
Resolution: Fixed
Fixed with attached patch and test suite run.
> 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
>
> Attachments: QPID-3766.patch
>
>
> 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