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

dsmr: simplify storage initilization #1888

Merged
merged 14 commits into from
Jan 22, 2025

Conversation

tsachiherman
Copy link
Contributor

What ?

This PR simplify the dsmr storage initialization by eliminating the nested complexity of VerifyRemoteChunk with clear and direct maps initialization.

In practice, this would eliminate the following for each loaded chunk:

  • No verification would be performed. There was no reason to verify loaded chunks, as they were verified prior of being stored to disk.
  • No writing each chunk to disk. The init()->VerifyRemoteChunk()->putVerifiedChunk()->s.chunkDB.Put() path is not needed when loading entries from disk.

@tsachiherman tsachiherman self-assigned this Jan 22, 2025
@tsachiherman tsachiherman marked this pull request as ready for review January 22, 2025 20:27
@aaronbuchwald aaronbuchwald merged commit 9adcdc4 into main Jan 22, 2025
16 of 17 checks passed
@aaronbuchwald aaronbuchwald deleted the tsachi/simplify_storage_initialization branch January 22, 2025 23:06
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.

2 participants