Skip to content

Conversation

Horusiath
Copy link
Contributor

@Horusiath Horusiath commented Jan 8, 2017

This PR brings few bug fixes, more API methods for distributed data collections and optimized, Hyperion-based serializers for ddata module (original Akka uses Protobuf).

@Aaronontheweb
Copy link
Member

Does this need to be dove-tailed with #2421 at all?

@Horusiath
Copy link
Contributor Author

No, those are custom serializers, but they use Hyperion internally. On the other side I'm thinking, if we should fall back to proto-buf here: current version assumes, that all elements for serialized collections will use Hyperion as well, which doesn't have to be true. We might potentially run into situation where we want to use custom serializers for internal elements representation.

@Horusiath
Copy link
Contributor Author

Horusiath commented Jan 17, 2017

Ultimatelly using protobuf here is not a good option - the major point is the fact, that we have heavily generic collections here, causing a lot of pain when working with protobuf. Therefore for the time being I'm proposing to use existing serializer (a slightly optimized one Hyperion-based).

This PR is ready for review and to merge.

@@ -63,7 +63,8 @@ public static StringBuilder AppendJoin<T>(this StringBuilder sb, string separato
index++;
sb.Append(separator);
// ReSharper disable CompareNonConstrainedGenericWithNull
if (enumerator.Current != null)
current = enumerator.Current;
if (current != null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@Aaronontheweb Aaronontheweb merged commit 3ef8c0c into akkadotnet:dev Jan 17, 2017
@Aaronontheweb
Copy link
Member

@Horusiath looks good to me

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

Successfully merging this pull request may close these issues.

2 participants