[
https://issues.apache.org/jira/browse/AVRO-870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079689#comment-13079689
]
Scott Carey commented on AVRO-870:
----------------------------------
I have noticed that big Schemas can be bulky in memory use as well. Re-using
instances should help with that as well.
> Use singleton class instances for primitive Schemas
> ---------------------------------------------------
>
> Key: AVRO-870
> URL: https://issues.apache.org/jira/browse/AVRO-870
> Project: Avro
> Issue Type: Improvement
> Components: java
> Affects Versions: 1.5.1
> Reporter: Aaron Kimball
>
> Would make a solid performance improvement for operations like
> Schema.equals() if the {{Schema.create(Schema.Type.INT)}} operation (and
> STRING, LONG, and other primitive types) returned referentially--equal
> objects every time.
> This would require disallowing calls to {{addProp()}}, or else something
> clever.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira