-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
ListCRDT
hash, comparator, and tombstone handling
Refine `ElementIDHash` using a better hash combination technique to reduce collisions. Simplify `ListElementComparator` by optimizing conditional branches and clarifying logic for `origin_left` and `origin_right` comparison. Remove unused `operator<` in `ListElement` to prevent confusion. Add bounds checking and tombstone checks in `delete_element` and merging logic to prevent redundant deletions. Implement `emplace_back` and `reserve` where applicable to optimize memory allocations, and ensure garbage collection handles only non-root tombstoned elements.
- Loading branch information
1 parent
cf29a66
commit 333f446
Showing
1 changed file
with
62 additions
and
43 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