mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 04:03:49 +01:00
Serializing the kernel memory block lists (userMemory, kernelMemory, volatileMemory) wrote a full Section header per block and re-zeroed each block's tag padding with strlen+memset on every save. Games keep on the order of a thousand blocks alive, so the per-block overhead is both measurable save time and wasted payload bytes. Zero-pad tags once at write time instead (Block constructor and SetAllocated), so the v2 form can store blocks raw: start, size, taken, tag - no per-block section machinery, no per-save tag scrubbing. Uninitialized padding still never reaches the stream, since every path that writes a tag now clears it first. v1 states still load through the old per-block-Section form, which is kept unchanged.