You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alessio Soldano (JIRA)" <ji...@apache.org> on 2016/03/11 10:45:39 UTC

[jira] [Resolved] (CXF-6826) Cache MediaTypeHeaderProvider.valueOf(String mType) results

     [ https://issues.apache.org/jira/browse/CXF-6826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessio Soldano resolved CXF-6826.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.6
                   3.2.0

Merged latest PR after having confirmed with Sergey.

> 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
>            Assignee: Alessio Soldano
>             Fix For: 3.2.0, 3.1.6
>
>
> 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)