Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
txscript: Convert opcode map to an array.
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