Comment Committing unsaved changes (Score 1) 407
There is a strange obsession among many that the only good RAM is empty RAM. Don;t shunt stuff out of memory until you need to
For one thing, shunting stuff out of memory involves committing unsaved changes to slow disk or slow NAND flash memory. For another, closing an application means having to call all its destructors, finalizers, or whatever your favorite language calls things that unwind in-memory data structures and release non-memory resources that an object holds. Responsiveness to user actions requires doing this sort of shutdown in the background rather than when the user is waiting for the application's memory allocation request to complete.