-
Notifications
You must be signed in to change notification settings - Fork 998
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
Improve serialization performance #2165
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2165 +/- ##
==========================================
- Coverage 84.57% 84.56% -0.01%
==========================================
Files 102 102
Lines 8173 8175 +2
==========================================
+ Hits 6912 6913 +1
- Misses 1261 1262 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Judah Rand <[email protected]>
c20a5b5
to
9382202
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, judahrand The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Judah Rand [email protected]
What this PR does / why we need it:
Similar quick pass as the deserialize PR (#2164). A definite improvement but not as drastic as the other one. Looks like between 20-30% improvement. This is achieved by avoiding memory copies as much as possible by using Numpy and allowing Protobuf to handle that more sensibly than copying to convert to Python object then copying back again to create Protobuf Message.
Same benchmark as the deserialize PR:
On
master
:With changes:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: