[ https://issues.apache.org/jira/browse/GEODE-1616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fred Krone updated GEODE-1616: ------------------------------ Labels: region_interface (was: ) > region compress/decompress does extra copy data in some cases > ------------------------------------------------------------- > > Key: GEODE-1616 > URL: https://issues.apache.org/jira/browse/GEODE-1616 > Project: Geode > Issue Type: Improvement > Components: compression > Reporter: Darrel Schneider > Labels: region_interface > > If a heap region is configured with a Compressor then each time compress and > decompress is called a copy of the byte array passed to it is made. This > extra copy is made if the value stored in the region is itself a byte array > or if it has already been serialized. > The extra copy is made so that the new byte array can also have encoded in it > if the original data represents a serialized object or is an actual byte > array. We could instead encode this boolean in a bit in the > AbstractRegionEntry. This is what off-heap regions do and they do not make > this extra copy. -- This message was sent by Atlassian JIRA (v6.4.14#64029)