mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
a small improvement to reduce gc about the latest field
This commit is contained in:
parent
a7f2803f8e
commit
3ceca64a1f
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ func NewStackTrie(onTrieNode OnTrieNode) *StackTrie {
|
||||||
root: stPool.Get().(*stNode),
|
root: stPool.Get().(*stNode),
|
||||||
h: newHasher(false),
|
h: newHasher(false),
|
||||||
onTrieNode: onTrieNode,
|
onTrieNode: onTrieNode,
|
||||||
last: make([]byte, 64),
|
last: make([]byte, 0, 64),
|
||||||
kBuf: make([]byte, 64),
|
kBuf: make([]byte, 64),
|
||||||
pBuf: make([]byte, 64),
|
pBuf: make([]byte, 64),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue