avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: 1.7.6 Slow Deserialization
Date Mon, 23 Jun 2014 18:13:24 GMT
On Mon, Jun 16, 2014 at 7:59 AM, Han, Xiaodan <xiaodan.han@baml.com> wrote:
> Is GenericDatumReader thread safe? What about the writer.

Yes, a DatumReader instance may be used in multiple threads.  Encoder
and Decoder are not thread-safe, but DatumReader and DatumWriter are.

> If we change the behavior of the Reader, would you suggest we also make the same change
for the Writer?

Yes, re-using a single GenericDatumWriter to write multiple objects
should improve performance.


View raw message