News for hackers. Stuff that matters.
Re:When a disk cache performs better than an in-memory cache by rcfox on Monday October 03, 2016 @06:48AM (#12626396)
Not everything can live on the stack.

If you're not using new/delete in C++, you're probably not doing something very complicated. (And hey, that's not necessarily a bad thing!)

Re:When a disk cache performs better than an in-memory cache by netheril96 on Monday October 03, 2016 @07:01AM (#12626452)
The resource manager (like std::vector or std::unique_ptr) can certainly live on the stack when the data it manages resides on the heap.
Re:When a disk cache performs better than an in-memory cache by saynsedit on Monday October 03, 2016 @11:49AM (#12628402)
RAII can wrap heap-allocated data. Also bss-allocated objects are common.