HomePhabricator

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

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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.

Details

Provenance
Gavin Andresen <gavinandresen@gmail.com>Authored on May 22 2012, 17:56
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGd1edab602a3e: Merge pull request #1379 from laanwj/2012_05_macoshide
Branches
Unknown
Tags
Unknown

Event Timeline

Gavin Andresen <gavinandresen@gmail.com> committed rSTAGINGacf513cfe75f: Move signature cache from CKey::Verify to CheckSig in script.cpp (authored by Gavin Andresen <gavinandresen@gmail.com>).May 22 2012, 18:15