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

Add cache for MessageBodyReader/Writer

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.5, 3.0.8
    • 3.1.7, 3.2.0
    • JAX-RS
    • None
    • windows

    • Unknown

    Description

      CXF selects the msgBodyReader/writer in the reader/writer list for every request, which has big impact to the performance. Jersey also has the cache in org.glassfish.jersey.message.internal.MessageBodyFactory._getMessageBodyReader(...). I have tried add the cache for CXF in ProviderFactory and been proved that it has improved 7-8% for json requests in JMeter. Please let me know if you'd like me to add the enhancement for CXF. Thanks.
      http://cxf.547215.n5.nabble.com/MessageBodyReader-Writer-cache-td5767091.html

      Attachments

        1. ProviderCache.java
          5 kB
          Neal Hu
        2. ListAProvider.java
          1 kB
          Neal Hu
        3. ListBProvider.java
          1 kB
          Neal Hu
        4. Resource.java
          0.7 kB
          Neal Hu
        5. beans.xml
          2 kB
          Neal Hu
        6. web.xml
          2 kB
          Neal Hu
        7. ProviderFactory.patch
          7 kB
          Neal Hu

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sergey_beryozkin Sergey Beryozkin
            nbqyqx@163.com Neal Hu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment