-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the varint encoding for edges by avoiding copy and extra memo…
…ry (#1516) This pull request enhances the previous varint encoding implementation by: - use serialized, batch encoding (not slow than previous implementation, thanks to batching) - reuse the ie list when encoding, avoid extra memory allocation and copy - use the shrink API to adjust the size of the encoded blob writer. After this pull request, compacting edges with varint no longer requires extra memory, and the encoding execution time has been optimized (almost half) as well. Fixes #1373 Signed-off-by: Tao He <[email protected]>
- Loading branch information
1 parent
b85a478
commit 6d7dfc4
Showing
9 changed files
with
233 additions
and
76 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
Oops, something went wrong.