Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7075

Remove unnecessary string.length() and map.containsKey(...) calls to improve performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.7
    • 3.1.8, 3.0.11, 3.2.0
    • JAX-RS
    • None
    • Moderate

    Description

      Using a simple (echo) JAX-RS benchmark, we've found a few hot spots around string.length() and map.containsKey(...) calls that could be optimized. Initial testing with the proposed changes yielded about a 2-3% improvement.

      Attachments

        1. JAXRSUtils-parseMediaType-perfTest.zip
          2.36 MB
          Andrew J McMurry

        Issue Links

          Activity

            People

              sergey_beryozkin Sergey Beryozkin
              andymc Andrew J McMurry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified