3 ms·
A few months ago, I saw a submission where the standard malloc was replaced by a non-freeing malloc. It never dealocates, just leaks memory. It was faster, and
by gus_massa 13y ago
A few months ago, I saw a submission where the standard malloc was replaced by a non-freeing malloc. It never dealocates, just leaks memory. It was faster, and was used in a short lived program (¿grep?) where the leaks are not important. I couldn’t find it now. Is this strategy useful here as an easy step towards a real malloc?
- leif 13y agoKind of. TCmalloc used to never unmap pages (though it would reuse things the client freed), which made it awful for long-lived processes with dynamic memory usage.
- dbaupp 13y agoIt may've been the D compiler, described in this article: http://www.drdobbs.com/cpp/increasing-compiler-speed-by-over-75/240158941 http://www.drdobbs.com/cpp/increasing-compiler-speed-by-over...