Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 644570487f379e9856ae4025181ecc6293d86711
      
https://github.com/btcsuite/btcd/commit/644570487f379e9856ae4025181ecc6293d86711
  Author: Dave Collins <[email protected]>
  Date:   2016-04-25 (Mon, 25 Apr 2016)

  Changed paths:
    M txscript/script.go

  Log Message:
  -----------
  txscript: Reduce script parse opcode allocs. (#677)

This changes the script template parsing function to use a pointer into
the constant global opcode array for parsed opcodes as opposed to making
a copy of the opcode entries which causes unnecessary allocations.

Profiling showed that after roughly 48 hours of operation, this
copy was the culprit of 207 million unnecessary allocations.


Reply via email to