Skip to content

Commit

Permalink
Extract ready times from existing chains
Browse files Browse the repository at this point in the history
Teaches the merge batcher to extract ready times from the existing
chains, and maintaining the chain invariant after extracting data. This
reduces the effort to maintain data that is not yet ready, by
maintaining a frontier per chain block that allows us to efficiently
decide that a block needs to be inspected or not.

Signed-off-by: Moritz Hoffmann <[email protected]>
  • Loading branch information
antiguru committed Mar 1, 2024
1 parent 0f93140 commit 1d6a5e5
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 296 deletions.
2 changes: 1 addition & 1 deletion examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn main() {

// Load up graph data. Round-robin among workers.
for _ in 0 .. (edges / peers) + if index < (edges % peers) { 1 } else { 0 } {
input.update((rng1.gen_range(0, nodes), rng1.gen_range(0, nodes)), 1)
input.update_at((rng1.gen_range(0, nodes), rng1.gen_range(0, nodes)), 1_000_000, 1)
}

input.advance_to(1);
Expand Down
Loading

0 comments on commit 1d6a5e5

Please sign in to comment.