You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
The text was updated successfully, but these errors were encountered:
danforbes
changed the title
Enhancement: use scale Encoder in trie code
use scale Encoder in trie code
Aug 22, 2022
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 scaleEncoder
(merged in #2741) so write directly to the targetio.Writer
.That would also make the trie code more 'stream oriented'.
The text was updated successfully, but these errors were encountered: