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

Implement iter::size_hint and ExactSizeIterator for Witness Iter #1053

Merged
merged 1 commit into from Jun 16, 2022

Commits on Jun 16, 2022

  1. Implement iter::size_hint and ExactSizeIterator for Witness Iter

    // with size_hint
    // test blockdata::witness::benches::bench_big_witness_to_vec              ... bench:         313 ns/iter (+/- 13)
    // test blockdata::witness::benches::bench_witness_to_vec                  ... bench:         204 ns/iter (+/- 11)
    
    // without
    // test blockdata::witness::benches::bench_big_witness_to_vec              ... bench:         489 ns/iter (+/- 28)
    // test blockdata::witness::benches::bench_witness_to_vec                  ... bench:         221 ns/iter (+/- 102)
    RCasatta committed Jun 16, 2022
    Copy the full SHA
    ec8dada View commit details
    Browse the repository at this point in the history