Branch: refs/heads/master
Home: https://github.com/conformal/btcchain
Commit: e29f40274df668b52733ba419edb937dc5f6df05
https://github.com/conformal/btcchain/commit/e29f40274df668b52733ba419edb937dc5f6df05
Author: Tomás Senart <[email protected]>
Date: 2014-07-02 (Wed, 02 Jul 2014)
Changed paths:
M reorganization_test.go
M txlookup.go
M validate.go
Log Message:
-----------
Replace map[a]bool with map[a]struct{}
The later uses no memory storage for values and provides the same
functionality.
Commit: 73ed07bd8552aa72629c62cd0e12f802a4bf06f1
https://github.com/conformal/btcchain/commit/73ed07bd8552aa72629c62cd0e12f802a4bf06f1
Author: Tomás Senart <[email protected]>
Date: 2014-07-02 (Wed, 02 Jul 2014)
Changed paths:
M scriptval.go
Log Message:
-----------
Use chan struct{} for semaphores
With semaphores we don't actually care about the value passed in. It
makes sense to use a 0 bytes type in these cases.
There is also the added benefit of compiler optimisations for this
specific use case as described here:
https://docs.google.com/document/d/1yIAYmbvL3JxOKOjuCyon7JhW4cSv1wy5hC0ApeGMV9s/pub
Compare:
https://github.com/conformal/btcchain/compare/933cdf50e8f7...73ed07bd8552