fuzz: avoid redundant dup key checks when creating Miniscript nodes #27117

pull darosior wants to merge 1 commits into bitcoin:master from darosior:more_efficient_miniscript_fuzzer changing 1 files +4 −1
  1. darosior commented at 11:42 am on February 17, 2023: member
    I thought i had done that already in #24149, but it must have slipped through the rebase. It’s a 2x speed improvement against the existing corpora and will probably be much more as we extend them with larger nodes.
  2. fuzz: avoid redundant dup key checks when creating Miniscript nodes
    Check it only once on the top level node.
    
    Running libfuzzer with -runs=0 against the qa-assets corpus (1b9ddc96586769d92b1b62775f397b7f1a63f142).
    Without this patch:
    	miniscript_stable: Done 6616 runs in 118 second(s)
    	miniscript_smart: Done 13182 runs in 253 second(s)
    With this patch:
    	miniscript_stable: Done 6616 runs in 57 second(s)
    	miniscript_smart: Done 13182 runs in 124 second(s)
    c1b7bd047f
  3. DrahtBot commented at 11:42 am on February 17, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK sipa

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  4. DrahtBot added the label Tests on Feb 17, 2023
  5. darosior commented at 11:43 am on February 17, 2023: member
    cc @sipa
  6. fanquake requested review from instagibbs on Feb 17, 2023
  7. sipa commented at 7:16 pm on February 21, 2023: member

    ACK c1b7bd047f47dcd3eb6897adfaf9a55594deff5d

    Ran fuzzing with miniscript_smart target, see https://github.com/bitcoin-core/qa-assets/pull/105.

  8. fanquake merged this on Feb 22, 2023
  9. fanquake closed this on Feb 22, 2023

  10. sidhujag referenced this in commit 0603bdba60 on Feb 25, 2023
  11. bitcoin locked this on Feb 22, 2024


darosior DrahtBot sipa


instagibbs

Labels
Tests


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-07-08 19:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me