faster hex-prefix codec and string -> []byte

This commit is contained in:
Ethan Buchman
2015-08-06 03:11:10 -04:00
parent 98100f472c
commit c1d516546d
5 changed files with 30 additions and 39 deletions

View File

@@ -41,7 +41,7 @@ func (self *Iterator) Next() bool {
self.Key = make([]byte, 32)
}
key := RemTerm(CompactHexDecode(string(self.Key)))
key := RemTerm(CompactHexDecode(self.Key))
k := self.next(self.trie.root, key, isIterStart)
self.Key = []byte(DecodeCompact(k))