POC: Small verification speedup: ~5% #5140

issue theuni opened this issue on October 24, 2014
  1. theuni commented at 11:00 PM on October 24, 2014: member

    Not submitting as a PR because it's hackish and we're moving towards libsecp256 anyway. Logging it here in case it's of any value for discussion for 0.10, though.

    See https://github.com/theuni/bitcoin/commit/3f74e704c6eea38c34132e273ba838473cf9eba9

    Initialize a single EC_KEY with the correct underlying group, then use EC_KEY_precompute_mult to speedup future operations. Save the result. For each future key, use a duplicate of that result as a starting point rather than incurring the overhead each time. I stuffed it in a singleton-ish as a quick hack.

    On my machine it shaves off about 5% per verify.

  2. laanwj added the label Improvement on Nov 7, 2014
  3. laanwj commented at 10:56 AM on October 27, 2015: member

    Closing this - it's a good idea, but we should switch to secp256k1 verification before 0.12 @sipa

  4. laanwj closed this on Oct 27, 2015

  5. MarcoFalke locked this on Sep 8, 2021
Contributors

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-04-18 15:15 UTC

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