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

Time slice #20

Merged
merged 31 commits into from
Nov 28, 2024
Merged

Time slice #20

merged 31 commits into from
Nov 28, 2024

Conversation

ThetaSinner
Copy link
Member

@ThetaSinner ThetaSinner commented Nov 25, 2024

Incomplete implementation of time slicing.

The pieces that are missing:

  • telling the time slice when the host has received new ops, so the slice hashes can be updated
  • providing a time slice summary to gossip and comparing with one from another peer
  • any logic for hash range partitioning. I see the time slicing being done per hash range, so this would need to be filtering by hash range when querying the host.

@ThetaSinner ThetaSinner requested a review from a team November 25, 2024 21:55
crates/api/src/lib.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
@neonphog
Copy link
Collaborator

Gave a cursory look over this and responded to some of your own comments. But my brain is too tired to dive in deeply tonight. I'd like to say I'll dig back into this tomorrow morning, but we've got meetings.... so after lunch?

crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
@neonphog
Copy link
Collaborator

Looks awesome! Some questions/comments, but I'm pretty happy with this : )

Cargo.toml Show resolved Hide resolved
crates/api/src/op_store.rs Show resolved Hide resolved
crates/api/src/op_store.rs Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Show resolved Hide resolved
crates/dht/src/time.rs Show resolved Hide resolved
Copy link
Contributor

@jost-s jost-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gonna review the tests in a bit. The code of the functions is super readable, awesome work!

crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@jost-s jost-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll continue tomorrow.

crates/memory/src/op_store.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/api/src/op_store.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
crates/dht/src/time.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@jost-s jost-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done with the first review. I appreciate the fantastic test suite!

neonphog
neonphog previously approved these changes Nov 27, 2024
Copy link
Collaborator

@neonphog neonphog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

crates/dht/src/time.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@jost-s jost-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

@ThetaSinner ThetaSinner merged commit 335460d into main Nov 28, 2024
4 checks passed
@ThetaSinner ThetaSinner deleted the time-slice branch November 28, 2024 17:08
@ThetaSinner ThetaSinner mentioned this pull request Dec 3, 2024
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.

4 participants