Move signature cache from CKey::Verify to CheckSig in script.cpp #1380

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:optimize2 changing 2 files +75 −69
  1. gavinandresen commented at 6:03 PM on May 22, 2012: contributor

    More than doubles the speed of verifying already-cached signatures that use compressed pubkeys: Before: ~200 microseconds After: ~80 microseconds (no caching at all: ~3,300 microseconds per signature)

    Thanks to @sipa for suggesting

  2. Move signature cache from CKey::Verify to CheckSig in script.cpp
    More than doubles the speed of verifying already-cached signatures
    that use compressed pubkeys:
    Before: ~200 microseconds
    After:  ~80 microseconds
    (no caching at all: ~3,300 microseconds per signature)
    
    Also encapsulates the signature cache code in a class
    and fixes a signed/unsigned comparison warning.
    acf513cfe7
  3. jgarzik commented at 7:07 PM on May 22, 2012: contributor

    ACK

  4. sipa commented at 8:51 PM on May 22, 2012: member

    ACK

  5. gmaxwell commented at 9:35 PM on May 22, 2012: contributor

    ACK.

  6. sipa referenced this in commit f29f242758 on May 22, 2012
  7. sipa merged this on May 22, 2012
  8. sipa closed this on May 22, 2012

  9. coblee referenced this in commit be92b92189 on Jul 17, 2012
  10. lateminer referenced this in commit 05981d8984 on Jan 22, 2019
  11. lateminer referenced this in commit a767875424 on Jan 22, 2019
  12. DrahtBot locked this on Sep 8, 2021

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: 2026-05-02 15:16 UTC

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