mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
For file-based alloc output, write each account to the output file as the state iterator yields it, instead of materializing the full post-state in an Alloc map and then marshaling it again with MarshalIndent. Peak memory becomes one account's JSON encoding rather than the whole post-state plus its indent buffer, which on benchmark-scale dumps reduced t8n heap_sys peak from ~20 GiB to ~8 GiB in local profiling. The on-disk JSON is the same shape saveFile would produce for an Alloc map. The buffered collector is retained for the stdout/stderr and binary-trie paths. |
||
|---|---|---|
| .. | ||
| t8ntool | ||