[ https://issues.apache.org/jira/browse/OOZIE-3250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16473895#comment-16473895 ]
Andras Piros commented on OOZIE-3250: ------------------------------------- Thanks [~mi...@cloudera.com] for your insights! Please find attached the new patch, addressing this {{equals()}} / {{==}} issue w/ {{byte[]}} instances. In this implementation I used {{java.nio.ByteBuffer}}. > Reduce heap waste by reducing duplicate byte[] count > ---------------------------------------------------- > > Key: OOZIE-3250 > URL: https://issues.apache.org/jira/browse/OOZIE-3250 > Project: Oozie > Issue Type: Improvement > Components: core > Affects Versions: 5.0.0 > Reporter: Andras Piros > Assignee: Andras Piros > Priority: Major > Attachments: OOZIE-3250.001.patch, OOZIE-3250.002.patch > > > Similar to OOZIE-3232, we also need to intern the {{byte[]}} field values > within > [*{{BinaryBlob}}*|https://github.com/apache/oozie/blob/master/core/src/main/java/org/apache/oozie/BinaryBlob.java#L32-L33] > and > [*{{StringBlob}}*|https://github.com/apache/oozie/blob/master/core/src/main/java/org/apache/oozie/StringBlob.java#L34] > to reduce heap waste caused by duplicate {{byte[]}} entries. -- This message was sent by Atlassian JIRA (v7.6.3#76005)