[ https://issues.apache.org/jira/browse/CXF-6837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15213025#comment-15213025 ]
Neal Hu edited comment on CXF-6837 at 3/26/16 1:26 PM: ------------------------------------------------------- Sergey, the isReadable/isWritable can not be the key as the result of the isReadable/isWritable will be changed during caching when the provider is from custom. We cache all reader/writer candidates who matches the mediaType and Java type. When get from cache, iterate all candidates's isReadable/isWritable until return true. For the failed system test, I have not found the RS resource for the tests. Will look next week. Any help will be appreciated! Thanks. Neal was (Author: nbq...@163.com): Sergey, the isReadable/isWritable can not be the key as the result of the isReadable/isWritable will be changed during caching when the provider is from custom. We cache all reader/writer candidates who matches the mediaType and Java type. For the failed system test, I have not found the RS resource for the tests. Will look next week. Any help will be appreciated! Thanks. Neal > Add cache for MessageBodyReader/Writer > -------------------------------------- > > Key: CXF-6837 > URL: https://issues.apache.org/jira/browse/CXF-6837 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Affects Versions: 3.1.5, 3.0.8 > Environment: windows > Reporter: Neal Hu > Fix For: 3.2.0 > > Attachments: ProviderCache.java, ProviderFactory.patch > > > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)