Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-548

Too many temporary std::string in Mutex and decaf::lang::Integer::toString(int)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.8.2
    • 3.8.4, 3.9.0
    • Decaf
    • None
    • Patch Available

    Description

      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).

      Attachments

        1. AMQCPP-548-1.patch
          3 kB
          Jeremy Leung
        2. AMQCPP-548.patch
          2 kB
          Jeremy Leung

        Activity

          People

            tabish Timothy A. Bish
            jeremyleung Jeremy Leung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: