reduce allocations by avoiding AssertTruef (#597)
reduce allocations by avoiding AssertTruef (#597)

ParseKey is called *a lot*. Unfortunately, AssertTruef converts implicitly the
arguments to interfaces which implicitly allocates. This was showing up as the
primary source of allocations in go-ipfs by a wide margin.
dgraph-io/badger,dgraph-io/badger