You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by GitBox <gi...@apache.org> on 2018/04/18 18:09:46 UTC

[GitHub] WhiteCat22 opened a new pull request #407: [CXF-7716] Reduce StringBuilders and other performance changes.

WhiteCat22 opened a new pull request #407: [CXF-7716] Reduce StringBuilders and other performance changes.
URL: https://github.com/apache/cxf/pull/407
 
 
   The IBM 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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services