Skip to content
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

Refactor ID #274

Merged
merged 5 commits into from
Feb 27, 2024
Merged

Refactor ID #274

merged 5 commits into from
Feb 27, 2024

Conversation

zxch3n
Copy link
Member

@zxch3n zxch3n commented Feb 27, 2024

Introducing IdLp that uses PeerId and Lamport to represent an id of an unique op.

This PR also reduce the snapshot encoding size by utilize the lamport value included by each op.

This PR also includes a few opt on mem usage by removing the need of storing ID for some structs.

@zxch3n zxch3n requested a review from Leeeon233 February 27, 2024 09:48
@zxch3n zxch3n marked this pull request as ready for review February 27, 2024 09:48
@zxch3n
Copy link
Member Author

zxch3n commented Feb 27, 2024

Performance change: https://app.warp.dev/block/u8W9QYcJhvLlV6pnYHavkJ

@zxch3n zxch3n merged commit b8eb57f into main Feb 27, 2024
1 check passed
@zxch3n zxch3n deleted the zxch3n/loro-509 branch February 27, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants