最快串行器和解串在C#中最低的内存占用?串行、最低、内存、最快

2023-09-02 20:49:13 作者:〆爱丶狠扯淡ヾ

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

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端口和的