[
https://issues.apache.org/jira/browse/AVRO-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17076505#comment-17076505
]
Doug Cutting commented on AVRO-2704:
------------------------------------
I think it would be better if both set() methods also cleared the cached hash
code. These two set() methods already maintain the cached String. There could
be apps out there that use these methods without calling setByteLength() which
would be broken by the current patch.
> Cache Hashcode of UTF8 Strings
> ------------------------------
>
> Key: AVRO-2704
> URL: https://issues.apache.org/jira/browse/AVRO-2704
> Project: Apache Avro
> Issue Type: Improvement
> Reporter: David Mollitor
> Assignee: David Mollitor
> Priority: Minor
> Fix For: 1.10.0
>
>
> Cache computed hash value for {{Utf8}} string instead of computing it every
> time it is required.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)