最快串行器和解串在C#中最低的内存占用? [英] Fastest serializer and deserializer with lowest memory footprint in C#?

查看:146
本文介绍了最快串行器和解串在C#中最低的内存占用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用的二进制格式(远程),序列化和反序列化对象发送搂着我的局域网中。

I am currently using the binary formatter (Remoting) to serialize and deserialize objects for sending around my LAN.

我最近从2.0升级到.NET 3.5。它的3.5推出任何新的类型,以提高系列化的表现?

I have recently upgraded from 2.0 to .NET 3.5. Has 3.5 introduced any new types to improve serialization performance?

我看了的DataContractSerializer ,但这种序列化什么底层的XML权利......必须增加内存占用。

I’ve looked at the DataContractSerializer, but this serializes anything to underlying XML right … which must increase the memory footprint.

什么是最快的串行发送跨我的局域网对象?我不在乎一个关于互操作或版本...。我需要速度!

What’s the fastest serializer for sending objects across my LAN? I don’t care a about interop or versioning …. I need speed!

我愿意接受第三方的开源替代品。

I am open to third-party open source alternatives.

推荐答案

这听起来像 Protocol Buffers的可能是你在找什么。

It sounds like Protocol Buffers might be what you're looking for.

有三个.NET实现,我所知道的: protobuf网的protobuf-CSHARP端口和的Proto#

There are three .NET implementations that I'm aware of: protobuf-net, protobuf-csharp-port and Proto#.

显示,Protocol Buffers的跑赢大市的内置串行器的性能比较术语规模和序列化/反序列化的速度。

The performance comparisons show that Protocol Buffers outperform the built-in serializers in terms of both size and serialization/deserialization speed.

这篇关于最快串行器和解串在C#中最低的内存占用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆