The Idea: Be Lazy to Be Fast
Imagine you have a 1,000-page book. A friend asks for a copy, but they only want to read it, not write in it. Instead of spending hours at a copy machine, you just let them read your book.
But what if your friend wants to cross out a word on page 42? At that exact moment, you take out page 42, make a single copy of it, hand it to them to edit, and keep the original safe.
This is Copy-on-Write (CoW). Instead of copying everything right away (which wastes time and space), the computer shares the data until the very last second—the moment a change needs to be made.