go-ethereum/cmd/evm/internal
fselmo 70111ffdd5 cmd/evm/t8ntool: stream post-state alloc to disk
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.
2026-04-24 11:52:27 +02:00
..
t8ntool cmd/evm/t8ntool: stream post-state alloc to disk 2026-04-24 11:52:27 +02:00