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

IBM Performance Team has found several performance increases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.15, 3.2.4
    • 3.1.16, 3.2.5
    • JAX-RS
    • None
    • Moderate

    Description

      Our performance team has identified several areas of improvement to reduce garbage collection and CPU usage.

      First, we reduced the amount of StringBuilders created in HTTPUtils.java and ResourceUtils.java.

      Second, we created JAXRSUtils.doMimeTypesIntersect() - a method similar to JAXRSUtils.intersectMimeTypes - that doesn't create a HashSet but instead returns a boolean when we just need to know if they intersect.

      Third, we found that getting the annotations for parameters to create constructor arguments in PerRequestResourceProvider.java is expensive, so we cache them in the constructor instead of getting them via reflection every request.

      These changes combined result in a ~1.5-2% performance increase.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              atanders Adam Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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