5 ms·
Can't copy-on-write achieve the same thing? If you keep a reference count, you can know whether it's safe to mutate the underlying data, or whether you need to
by slavik81 7y ago
Can't copy-on-write achieve the same thing? If you keep a reference count, you can know whether it's safe to mutate the underlying data, or whether you need to make a copy first.
- heavenlyblue 7y agoTechnically copy-on-write is an implementation detail. It may or may not be implemented this way.