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 Fri, 13 Jun 2014 17:59:06 GMT
On Wed, Jun 11, 2014 at 1:05 PM, Han, Xiaodan <xiaodan.han@baml.com> wrote:
> org.apache.avro.specific.SpecificDatumReader.findStringClass(SpecificDatumReader.java:80)
> org.apache.avro.generic.GenericDatumReader.getStringClass(GenericDatumReader.java:394)

The result of findStringClass are cached by getStringClass, so there
should only be one call per schema used with a GenericDatumReader
instance.  So, with 22k calls to this method in the samples, perhaps
you're either creating a new schema or a new GenericDatumReader per
instance read.  Could that be possible?

Doug

Mime
View raw message