首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用BinaryFormatter而非protobuf-net的原因

使用BinaryFormatter而非protobuf-net的原因
EN

Stack Overflow用户
提问于 2015-03-31 03:57:57
回答 1查看 2.7K关注 0票数 2

因此,在我见过的许多基准测试中,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做不到的。你能给我一个我想要存储类型元数据的示例场景吗?

EN

回答 1

Stack Overflow用户

发布于 2015-05-01 00:12:09

我目前正在努力使用protobuf-net来序列化Dictionary<string, object>类型的对象。我读到的是这是不可能的,所以我猜这是一种人们更喜欢BinaryFormatter的场景。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29355149

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档