Remix.run Logo
wbl 10 minutes ago

That's where write barriers and the like come in. The cost varies by implementation and language.