You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Mike Rodriguez (JIRA)" <ji...@apache.org> on 2015/06/03 18:50:38 UTC

[jira] [Commented] (AVRO-1455) Deep copy does not need to create new instances for primitives

    [ https://issues.apache.org/jira/browse/AVRO-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14571306#comment-14571306 ] 

Mike Rodriguez commented on AVRO-1455:
--------------------------------------

Sorry for the delay getting back to this.  Thanks Doug, I logged AVRO-1676 to track the treatment of enums in GenericData.deepCopy() with references to a few posts on the topic before.

> Deep copy does not need to create new instances for primitives
> --------------------------------------------------------------
>
>                 Key: AVRO-1455
>                 URL: https://issues.apache.org/jira/browse/AVRO-1455
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.6
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 1.7.7
>
>         Attachments: AVRO-1455.patch
>
>
> Java Boolean, Integer, Long, Float and Double are immutable so there's no need to create new instances for them in GenericData#deepCopy. Note that this optimization is already present for String.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)