Feature/flatbuffers zero copy - #44
Draft
Spicy-cream wants to merge 3 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
目前已完成 Protobuf、FlatBuffers 和 Cap'n Proto 的初步 benchmark,
覆盖 simple/complex 结构以及 64 B~8 MiB payload。
测试包含:
初步结果表明,FlatBuffers 接收端 View 初始化成本较低,
但当前 attachment 实验路径中的整块复制会掩盖免反序列化收益。
初版提议
基于 bRPC 已有 SingleIOBuf 和社区 FlatBuffers 工作,优先实现:
初版仅讨论 TCP 连续缓冲区路径。
RDMA 注册内存、URMA 和 RemoteRegion 放到后续独立阶段。
本 PR 当前包含
当前不包含 bRPC 核心代码修改。
希望确认的问题
测试说明
当前结果来自 WSL localhost 和自建 benchmark,不代表 RDMA/URMA
真机性能;数据主要用于验证方案可行性和定位内存复制问题。