gossamer
gossamer copied to clipboard
use scale `Encoder` in trie code
Trie code uses scale.Marshal
in a few places and then copies the resulting scale encoded byte slice to another io.Writer (usually a bytes buffer). We could save those copying operations by using the scale Encoder
(merged in #2741) so write directly to the target io.Writer
.
That would also make the trie code more 'stream oriented'.