RE: propose change to java Schema.computeHash implementation to avoid unnessary object allocation/hashcode calculation

2014-01-06 Thread Liu, Tie
in Jira once a patch has been posted. https://cwiki.apache.org/confluence/display/AVRO/How+To+Contribute Thanks, Doug On Thu, Jan 2, 2014 at 11:21 AM, Liu, Tie tie@baml.com wrote: Hi, In current Schma.java we have following implementation: public final int hashCode

propose change to java Schema.computeHash implementation to avoid unnessary object allocation/hashcode calculation

2014-01-02 Thread Liu, Tie
Hi, In current Schma.java we have following implementation: public final int hashCode() { if (hashCode == NO_HASHCODE) hashCode = computeHash(); return hashCode; } int computeHash() { return getType().hashCode() + props.hashCode(); } While hashCode is doing the checking