[
https://issues.apache.org/jira/browse/QPID-8744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090848#comment-18090848
]
ASF subversion and git services commented on QPID-8744:
-------------------------------------------------------
Commit e885aeb91f5e546ca3012a5831ad84824dd2e11f in qpid-broker-j's branch
refs/heads/main from Daniil Kirilyuk
[ https://gitbox.apache.org/repos/asf?p=qpid-broker-j.git;h=e885aeb91f ]
QPID-8744: [Broker-J] Jackson ObjectMapper instances shouldn't be created on
each method call (#403)
> [Broker-J] Jackson ObjectMapper instances shouldn't be created on each method
> call
> ----------------------------------------------------------------------------------
>
> Key: QPID-8744
> URL: https://issues.apache.org/jira/browse/QPID-8744
> Project: Qpid
> Issue Type: Improvement
> Components: Broker-J
> Affects Versions: qpid-java-broker-10.0.1
> Reporter: Daniil Kirilyuk
> Priority: Minor
> Fix For: qpid-java-broker-10.0.2
>
>
> Jackson ObjectMapper is thread-safe for both reads and writes once
> constructed, but relatively expensive to create. The codebase has several
> locations where new ObjectMapper() is called per method invocation. These
> should be replaced to private static final fields.
> Main affected classes are:
> # AttributeValueConverter
> # RestServlet
> # QueryServlet
> # ManagementInputConverter
> # ConfiguredObjectBinding
> # ReplicatedEnvironmentFacade
> # AbstractJDBCConfigurationStore
> # AbstractJDBCPreferenceStore
> # HttpManagement
> # UpgradeFrom7to8
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]