cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessio Soldano (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6826) Cache MediaTypeHeaderProvider.valueOf(String mType) results
Date Wed, 09 Mar 2016 11:11:40 GMT

    [ https://issues.apache.org/jira/browse/CXF-6826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15186957#comment-15186957
] 

Alessio Soldano commented on CXF-6826:
--------------------------------------

Pull request: https://github.com/apache/cxf/pull/121

> Cache MediaTypeHeaderProvider.valueOf(String mType) results
> -----------------------------------------------------------
>
>                 Key: CXF-6826
>                 URL: https://issues.apache.org/jira/browse/CXF-6826
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>            Reporter: Alessio Soldano
>
> MediaTypeHeaderProvider.valueOf(String mType) ends up being called a lot with the same
parameter values, as those are basically the contents of the @Produce annotations on resources.
Each request ends up into the same invocation, which is cpu and memory intensive.
> It might make sense to add a map in the MediaTypeHeaderProvider to store the result of
the static valueOf method invocation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message