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

Add a parameter to bridgetree that sets a power of two defining a chunk size for bridge splits. #41

Open
nuttycom opened this issue Jul 13, 2022 · 1 comment
Assignees

Comments

@nuttycom
Copy link
Contributor

nuttycom commented Jul 13, 2022

In the use case where we're doing a DAG-based traversal of notes, we need the two following things:

  • The ability to retain a set of checkpoints at (configurably) 2^16 note boundaries such that they are not garbage-collected.
  • An operation mark_at that, given a position p, can request an iterator full of leaves over a given range of positions, and replace the bridge containing p with a pair of bridges with the leaf at position p witnessed.
    pub fn mark_at<G, F, I>(&mut self, position: Position, get_context: F) -> Result<(), SplitError>
        where
            I: Iterator<Item = H>,
            F: FnOnce(Range<Position>) -> I
@nuttycom nuttycom self-assigned this Jul 27, 2022
@daira
Copy link
Contributor

daira commented Jun 22, 2023

Is this issue obsolete given the move to shardtree?

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

No branches or pull requests

2 participants