Copy-on-Write

Programming Fundamentals · Bottom

Memory optimization where data is shared between readers until a writer modifies it, at which point only the modified portion is copied. Solana's AccountsDB uses copy-on-write semantics — accounts are written to new AppendVec entries rather than modifying in place, enabling snapshot creation without pausing transaction processing.

Related terms