If the memory is available, you'd do better to use it, no?
If the memory is available, you'd do better to use it, no?
> If the application tries to write to the memory in future, Windows will give it a private copy
It is textbook Copy-on-write. To me it seems no judgement is made about the programmer.
>If the memory is available, you'd do better to use it, no?
I don't understand... if I have 2 GB of RAM, I should always use all of it? The case being made in the article is to minimize memory consumption to increase battery life - something that will be crucial on tablets I assume.
These are Windows programmers we're talking about. The culture doesn't seem to encourage fastidiousness.
If the memory is available, you'd do better to use it, no?
Yes, but what if you run out later? Should you do the dedupe when some other process is blocked trying to allocate memory or should you do it earlier?