Branch: refs/heads/master
Home: https://github.com/conformal/btcwire
Commit: cbf648a02f20ecf1a366e335e15c209371b9fa39
https://github.com/conformal/btcwire/commit/cbf648a02f20ecf1a366e335e15c209371b9fa39
Author: Dave Collins <[email protected]>
Date: 2013-10-30 (Wed, 30 Oct 2013)
Changed paths:
M common.go
M test_coverage.txt
Log Message:
-----------
Slightly optimize writeVarInt for the normal case.
Most variable length integers are smaller numbers, so this commit reverses
the order of the if checks in the writeVarInt to assume smaller numbers
are more common.
This is part of the ongoing effort to optimize serialization as noted in
conformal/btcd#27