mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-13 18:31:35 +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. |
||
|---|---|---|
| .. | ||
| block.go | ||
| execution.go | ||
| file_tracer.go | ||
| flags.go | ||
| gen_execresult.go | ||
| gen_header.go | ||
| gen_stenv.go | ||
| transaction.go | ||
| transition.go | ||
| tx_iterator.go | ||
| utils.go | ||