
IDL
「已注销」
https://github.com/hongweikkx
展开
-
golang 写入和读取pb文件
golang 读取pb文件记录一次golang 读取pb的demo定义proto文件tree 如下:.├── main.go├── output│ └── output.pb└── proto ├── test.pb.go └── test.protocat test.pb.gosyntax = "proto3";package example;me...原创 2019-10-18 20:46:12 · 3118 阅读 · 0 评论 -
protobuff vs json
本文讨论 protobuff 和 json 作为消息传递格式的优缺点。消息处理的过程包括:接收到二进制 -> 切包 -> 解码 -> 消息分发 -> 处理消息 所以我们决定从 1. 包的大小 2. 编解码速度 来讨论两者1. 包的大小protobuff 的编码方式在看protobuff 之前,我们需要知道pb并没有自己切tcp包的代码,常用的做法还是程序自己去做...原创 2019-01-03 19:27:23 · 1474 阅读 · 0 评论