multiformats / go-multihash

Multihash implementation in Go
MIT License
234 stars 56 forks source link

Decode allocates #144

Open vyzo opened 3 years ago

vyzo commented 3 years ago

See https://github.com/multiformats/go-multihash/blob/master/multihash.go#L219

Basically every attempt to decode creates a DecodedMultihash object on the heap; this has deleterious effects for things like idstore wrapping.