有 Protocol buffer 这种轻便的序列化反序列化工具,Json 为什么还会大量使用?

Views :
Update time : 2025-06-19 21:40:16

看到大量答主黑protobuf,我站出来说一个protobuf的使用场景:当你需要把结构序列化到磁盘,内存只做cache时。

你只需要访问其中一个字段,不断调度发生的json 序列化和反序列化会非常慢。

protobuf由于标记了offset,可以轻松取数据中一个子数据。

然后业务系统不要没事上protobuf,会很麻烦。

性能没有那么重要,互联网大部分性能问题可以通过加机器解决。

有 Protocol buffer 这种轻便的序列化反序列化工具,Json 为什么还会大量使用?
Related News
Read More >>
Blog Post With Youtube Video 有哪些是你用上了mac才知道的事?
2025-06-29 12:10:17
有哪些是你用上了mac才知道的事?...
Blog Post With Youtube Video Visual Studio 是不是坑了一代人?为什么?
2025-06-29 11:35:16
Visual Studio 是不是坑了一代人?为什么?...
Blog Post With Youtube Video 为什么父母会把两三万的学费非常当回事?
2025-06-29 11:25:16
为什么父母会把两三万的学费非常当回事?...
Blog Post With Youtube Video 如何评价韩剧《鱿鱼游戏 3》(最终季》?
2025-06-29 11:45:16
如何评价韩剧《鱿鱼游戏 3》(最终季》?...

Leave Your Message