https://github.com/xia-chu/tinybuf
An efficient serialization format and library which support json
https://github.com/xia-chu/tinybuf
cjson json protobuf serialization tiny
Last synced: about 1 year ago
JSON representation
An efficient serialization format and library which support json
- Host: GitHub
- URL: https://github.com/xia-chu/tinybuf
- Owner: xia-chu
- Created: 2019-09-30T10:45:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-18T03:51:59.000Z (about 3 years ago)
- Last Synced: 2025-04-02T09:44:55.909Z (about 1 year ago)
- Topics: cjson, json, protobuf, serialization, tiny
- Language: C++
- Homepage:
- Size: 77.1 KB
- Stars: 26
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 一个高效的序列化反序列化库
- [x] 支持json序列化反序列化
- [x] 支持tinybuf([私有协议](https://github.com/xiongziliang/tinybuf/wiki/tinybuf%E5%BA%8F%E5%88%97%E5%8C%96%E5%8D%8F%E8%AE%AE))序列化反序列化
- [x] 纯C代码,适合嵌入式系统
- [x] 序列化反序列化性能高效
- [x] tinybuf序列化格式占用字节更少,更利于传输
# 性能对比(release模式)
- [x] json格式时,序列化性能大约为jsoncpp的3倍
- [x] json格式时,反序列化性能大约为jsoncpp的1.5倍
- [x] tinybuf格式时,序列化性能大约为jsoncpp的10~20倍
- [x] tinybuf格式时,反序列化性能大约为jsoncpp的4倍
# 测试结果截图
