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

Faster vector clock #161

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

uprendis
Copy link

Replace vecmt with vecclock:

  • Avoid excessive serialization/deserialization by using swapmap instead of backed map
  • Erase excessive legacy abstraction layers
  • Small optimizations for the vector clock algorithm

Performance test for epochs 15000-15100:
Before: 135.3s
After: 79.3
(1.7x speedup)

This metric includes only event processing (saveAndProcessEvent) without block processing in offline mode. Let me know if you get inconsistent results with this one
The optimization depends on number of validators. The more validators, the larger the improvement

@uprendis uprendis marked this pull request as draft June 20, 2024 13:06
@uprendis uprendis changed the title Faster vector clock [WIP] Faster vector clock Jun 21, 2024
@uprendis uprendis marked this pull request as ready for review June 21, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant