beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davor Bonaci (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BEAM-560) In JAXBCoder, use a pair of ThreadLocals to cache Marshaller/Unmarshaller
Date Thu, 26 Jan 2017 18:13:24 GMT

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

Davor Bonaci resolved BEAM-560.
-------------------------------
    Resolution: Fixed
      Assignee: Kai Jiang  (was: Davor Bonaci)

> In JAXBCoder, use a pair of ThreadLocals to cache Marshaller/Unmarshaller
> -------------------------------------------------------------------------
>
>                 Key: BEAM-560
>                 URL: https://issues.apache.org/jira/browse/BEAM-560
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Thomas Groh
>            Assignee: Kai Jiang
>            Priority: Minor
>              Labels: easyfix, starter
>             Fix For: 0.5.0
>
>
> Marshallers and Unmarshallers are created per-element. Instead, they can be created per-thread
and stored within a ThreadLocal which creates a new instance on calls to initialValue(), which
allows them to be reused for all elements encoded or decoded by the coder.



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

Mime
View raw message