Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subzero not serializing and compressing the Byte array object #14

Open
mukul4u2005 opened this issue Mar 14, 2017 · 2 comments
Open

Subzero not serializing and compressing the Byte array object #14

mukul4u2005 opened this issue Mar 14, 2017 · 2 comments
Milestone

Comments

@mukul4u2005
Copy link

I am not able to see the byte array object compressed by kryo it is having same size as normal serialization .

public class ImagePojo {

public String fileName;

public byte[] image;

public String getFileName() {
	return fileName;
}

public void setFileName(String fileName) {
	this.fileName = fileName;
}

public byte[] getImage() {
	return image;
}

public void setImage(byte[] image) {
	this.image = image;
}

}

SubZero.useForClasses(cfg, ImagePojo.class);
HazelcastInstance hzInstance = Hazelcast.newHazelcastInstance(cfg);

Please suggest.

I was thinking it will be using these package to compress:

import java.util.zip.DeflaterOutputStream;
import java.util.zip.InflaterInputStream;

@jerrinot jerrinot added this to the 0.8 milestone Mar 14, 2017
@jerrinot
Copy link
Owner

this sounds like a nice improvement, thanks!
Hazelcast does use compression for Java serialization only -> SubZero will have to do it on its own, but it should be simple enough.

@loudywen
Copy link

@jerrinot Hi, can you please tell me how to add compression when I change the default serializer to CompatibleFieldSerializer? Please, I really need your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants