[
https://issues.apache.org/jira/browse/CXF-7075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15548272#comment-15548272
]
Sergey Beryozkin commented on CXF-7075:
---------------------------------------
Hi,
thanks for this patch, I've applied most of the changes except the one in
JAXRSUtils. The reason for it is that I'm pretty sure the original code was
using 'split' but a user reported that it was affecting the performance :-).
Perhaps it is not too bad when Accept has only 1 or 2 media types but becomes
worse with the longer sequences ?
Can you please give me a favour and do some more analysis on that specific code
(.length() vs split()), may be we can come up with yet another solution there
thanks
> Remove unnecessary string.length() and map.containsKey(...) calls to improve
> performance
> ----------------------------------------------------------------------------------------
>
> Key: CXF-7075
> URL: https://issues.apache.org/jira/browse/CXF-7075
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Affects Versions: 3.1.7
> Reporter: Andy McCright
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Using a simple (echo) JAX-RS benchmark, we've found a few hot spots around
> string.length() and map.containsKey(...) calls that could be optimized.
> Initial testing with the proposed changes yielded about a 2-3% improvement.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)