-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary edge list scan during insert.
When a thread reaches the end of the edge list without finding a spot for the edge it is trying to insert/update, it tries to atomically swap in a new edge block on the end of the list. If this fails, the existing code would return to the beginning of the list and re-scan the entire thing before trying to swap in a new block. With this patch, the thread just keeps searching from its current position.
- Loading branch information
Showing
2 changed files
with
14 additions
and
14 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