[
https://issues.apache.org/jira/browse/AMQCPP-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14088389#comment-14088389
]
Timothy Bish commented on AMQCPP-548:
-------------------------------------
Cleaned up the offending count variables.
> Too many temporary std::string in Mutex and
> decaf::lang::Integer::toString(int)
> --------------------------------------------------------------------------------
>
> Key: AMQCPP-548
> URL: https://issues.apache.org/jira/browse/AMQCPP-548
> Project: ActiveMQ C++ Client
> Issue Type: Improvement
> Components: Decaf
> Affects Versions: 3.8.2
> Reporter: Jeremy Leung
> Assignee: Timothy Bish
> Fix For: 3.8.4, 3.9.0
>
> Attachments: AMQCPP-548-1.patch, AMQCPP-548.patch
>
>
> Every Mutex will associated with a MutexProperties and the name of the Mutex
> is actually generated by the DEFAULT_NAME_PREFIX plus a call to
> Integer::toString( ++id ).
> From the profiling of our application (highly multi-threaded), we found that
> many times are spent in the std::basic_string allocation and deallocation
> inside the functions decaf::lang::Integer::toString(int) and
> decaf::lang::Integer::toString(int, int).
--
This message was sent by Atlassian JIRA
(v6.2#6252)