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

MessagePackCompression options #3

Open
cirrusone opened this issue Oct 14, 2021 · 0 comments
Open

MessagePackCompression options #3

cirrusone opened this issue Oct 14, 2021 · 0 comments

Comments

@cirrusone
Copy link

Hello,

Firstly thanks for this really helpful example on how to implement MessagePack.

I was looking to try and add compression MessagePackCompression.Lz4BlockArray by changing MsgPackBlazor.Client/Program to the following

StaticCompositeResolver.Instance.Register(GeneratedResolver.Instance, StandardResolver.Instance);

MessagePackSerializer.DefaultOptions = MessagePackSerializerOptions.Standard
.WithResolver(StaticCompositeResolver.Instance)
.WithCompression(MessagePackCompression.Lz4BlockArray);

I'm not seeing any filesize reductions at the moment. Are there other areas that require updating to allow this to work?

Thanks,
R

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

No branches or pull requests

1 participant