-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
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
请问为何不提供loan的接口 #125
Comments
嗯,最开始设计的时候主要针对的是小内存,因此ipc内部的内存管理并没有作为通用接口开出来。但你说的这个点是有道理的,所以在重构分支里我会想办法把内存申请接口给出来,减少一次深拷贝 |
感谢回复,期待重构后的版本 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
大佬你好~,ipc::sender为何不提供类似loan的接口,很多情况下可以减少一次拷贝:
就比如protobuf的序列化,通过调用SerializeToArray,直接把buffer指定到共享内存块上,这样可以省去一次从用户的内存搬运到共享内存的过程
The text was updated successfully, but these errors were encountered: