Skip to content

Commit

Permalink
txscript: Convert opcode map to an array.
Browse files Browse the repository at this point in the history
This commit converts the opcode map to an array to improve performance.

Benchmark of executing a standard p2pk transaction:

New: BenchmarkExecute            2000            784349 ns/op
Old: BenchmarkExecute            2000            792600 ns/op

The time is dominated by the signature checking as expected, however there
is still an increase in speed.
  • Loading branch information
davecgh committed Apr 21, 2015
1 parent d6f2b09 commit d251208
Show file tree
Hide file tree
Showing 4 changed files with 751 additions and 1,017 deletions.
Loading

0 comments on commit d251208

Please sign in to comment.