Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: f6a437d4c90ba153f45deb6c58c43744e917ed79
      
https://github.com/btcsuite/btcd/commit/f6a437d4c90ba153f45deb6c58c43744e917ed79
  Author: Dave Collins <[email protected]>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M btcec/genprecomps.go
    M btcec/gensecp256k1.go
    M btcec/precompute.go
    M btcec/secp256k1.go

  Log Message:
  -----------
  btcec: Optimize pre-computed table load.

This commit modifies the pre-computed table used to optimize the secp256k1
scalar multiplication to a string instead of a byte slice.  This change
makes the compile more efficient since the Go compiler internally
represents bytes slices inefficiently.

This reduces the memory needed to compile btcec to 3MB versus the previous
40MB before this change.

In addition, it modifies the code which loads the pre-computed table to
deserialize directly into the table instead of into locals that are then
copied.

Fixes #297.


Reply via email to