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

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

Merged
merged 1 commit into from May 22, 2012

Commits on May 22, 2012

  1. 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.
    gavinandresen committed May 22, 2012
    Copy the full SHA
    acf513c View commit details
    Browse the repository at this point in the history