Files

3 lines
491 B
Markdown
Raw Permalink Normal View History

2026-03-31 21:00:48 +02:00
# Copy on Write
2023-06-01 03:18:40 +01:00
2026-03-31 21:00:48 +02:00
The Copy-on-Write (CoW) idiom is an optimization technique used to defer or eliminate the cost of copying resources until the first write operation. Instead of creating a new copy of an object immediately, the original object and the "copy" share the same underlying resource. Only when one of the objects attempts to modify the shared resource is a true copy created. This can significantly improve performance by avoiding unnecessary copying, especially for large objects.