因此,在我见过的许多基准测试中,protobuf-net远远领先于BinaryFormatter:- http://theburningmonk.com/2011/08/performance-test-binaryformatter-vs-protobuf-net/ - https://code.google.com/p/protobuf-net/wiki/Performance
这就引出了一个问题:如果protobuf-net是可用的,你为什么要使用BinaryFormatter?
我读过一些关于BinaryFormatter存储类型元数据的文章,这是protobuf做不到的。你能给我一个我想要存储类型元数据的示例场景吗?
发布于 2015-05-01 00:12:09
我目前正在努力使用protobuf-net来序列化Dictionary<string, object>类型的对象。我读到的是这是不可能的,所以我猜这是一种人们更喜欢BinaryFormatter的场景。
https://stackoverflow.com/questions/29355149
复制相似问题