forked from facebookresearch/fbpcf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove memcpy from EmpNetworkAdapter (facebookresearch#193)
Summary: Pull Request resolved: facebookresearch#193 This diff remove `memcpy` from EmpNetworkAdapter to improve performance. `memcpy` is expensive, as it is essentially adding linear overhead for every single operation. Changes: - Add `send_impl` and `recv_impl` functions to IPartyCommunicationAgent - Refactor classes that implemented IPartyCommunicationAgent to call `send_impl` and `recv_impl` in their respective `send` and `receive` functions - Refactor EmpNetworkAdapter to use `send_impl` and `recv_impl` Reviewed By: RuiyuZhu Differential Revision: D35818108 fbshipit-source-id: a8c6f842df1a58e388dea7fec1fe80ff2fcf0747
- Loading branch information
1 parent
988ceb5
commit 96966c1
Showing
6 changed files
with
63 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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