We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大佬你好~,ipc::sender为何不提供类似loan的接口,很多情况下可以减少一次拷贝: 就比如protobuf的序列化,通过调用SerializeToArray,直接把buffer指定到共享内存块上,这样可以省去一次从用户的内存搬运到共享内存的过程
The text was updated successfully, but these errors were encountered:
嗯,最开始设计的时候主要针对的是小内存,因此ipc内部的内存管理并没有作为通用接口开出来。但你说的这个点是有道理的,所以在重构分支里我会想办法把内存申请接口给出来,减少一次深拷贝
Sorry, something went wrong.
感谢回复,期待重构后的版本
No branches or pull requests
大佬你好~,ipc::sender为何不提供类似loan的接口,很多情况下可以减少一次拷贝:
就比如protobuf的序列化,通过调用SerializeToArray,直接把buffer指定到共享内存块上,这样可以省去一次从用户的内存搬运到共享内存的过程
The text was updated successfully, but these errors were encountered: