Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: d251208f1fdba57cb78228555c80f8069529f669
      
https://github.com/btcsuite/btcd/commit/d251208f1fdba57cb78228555c80f8069529f669
  Author: Dave Collins <[email protected]>
  Date:   2015-04-21 (Tue, 21 Apr 2015)

  Changed paths:
    M txscript/internal_test.go
    M txscript/opcode.go
    M txscript/reference_test.go
    M txscript/script.go

  Log Message:
  -----------
  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.


Reply via email to