-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add compression option for NewtonSoftJsonSerializer #6341
Add compression option for NewtonSoftJsonSerializer #6341
Conversation
@Arkatufus I know you shared data with me on Slack, but can you include any benchmark data for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM but need to include benchmark data on the PR
@@ -4789,6 +4789,7 @@ namespace Akka.Serialization | |||
public NewtonSoftJsonSerializer(Akka.Actor.ExtendedActorSystem system) { } | |||
public NewtonSoftJsonSerializer(Akka.Actor.ExtendedActorSystem system, Akka.Configuration.Config config) { } | |||
public NewtonSoftJsonSerializer(Akka.Actor.ExtendedActorSystem system, Akka.Serialization.NewtonSoftJsonSerializerSettings settings) { } | |||
public bool Compressed { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API changes LGTM
# JSON string using GZip. | ||
# Useful to avoid network congestion when your serialized | ||
# data starts to grow to the megabyte size | ||
use-compression = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - fully wire compatible
@Arkatufus needs to be ported to v1.5 |
This reverts commit d7daf56.
Changes
use-compression
to NewtonSoftJsonSerializerSystem.IO.Compression.GZip