[jira] [Created] (IGNITE-3704) .NET: Serialization micro-optimizations

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-3704) .NET: Serialization micro-optimizations

Anton Vinogradov (Jira)
Pavel Tupitsyn created IGNITE-3704:
--------------------------------------

             Summary: .NET: Serialization micro-optimizations
                 Key: IGNITE-3704
                 URL: https://issues.apache.org/jira/browse/IGNITE-3704
             Project: Ignite
          Issue Type: Improvement
          Components: platforms
    Affects Versions: 1.4
            Reporter: Pavel Tupitsyn
             Fix For: 1.8


There are some clever ideas in the article:
https://rogeralsing.com/2016/08/16/wire-writing-one-of-the-fastest-net-serializers/

In particular, this piece can be easily incorporated in our code:

{code}
public ValueSerializer GetSerializerByType(Type type)
{
  if (ReferenceEquals(type.GetTypeInfo().Assembly, ReflectionEx.CoreAssembly))
  {
    if (type == TypeEx.StringType) //we simply keep a reference to each primitive type
      return StringSerializer.Instance;
...
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)