Should I read a chapter about Memory management if now a days we mostly use ARC?
I’m reading a book on Objective C, and I was wondering about 2 things:
How many `malloc` calls is too many? If any?
I’m implementing a system in C, implemented partially as a library. The library does most of the memory management itself, with the application layer just having to call *_destroy
functions on the top-level objects.
Architecture change from using disk to RAM to read and write key/value pairs coming over a network
A WebApp writes a stream of data coming over a network to disk as key/value pair and then reads & send it over network again after few milliseconds in 99% of case. In 1% of cases write/read can be few hours to days apart (really don’t know).
Performance of single-assignment ADT oriented code on modern CPUs
Working in immutable data with single assignments has the obvious effect of requiring more memory, one would presume, because you’re constantly creating new values (though compilers under the covers do pointer tricks to make this less of an issue).
How did they debug segmentation faults before protected memory?
Now, when I make a programming mistake with pointers in C, I get a nice segmentation fault, my program crashes and the debugger can even tell me where it went wrong.
Demonstration of garbage collection being faster than manual memory management
I’ve read in many places (heck, I’ve even written so myself) that garbage collection could (theoretically) be faster than manual memory management.
Demonstration of garbage collection being faster than manual memory management
I’ve read in many places (heck, I’ve even written so myself) that garbage collection could (theoretically) be faster than manual memory management.
What is the best solution for static memory allocation?
I’m working on image processing and I need to use big Images in a critical system.
What is the best solution for static memory allocation?
I’m working on image processing and I need to use big Images in a critical system.
Methods to identify and resolve memory leaks in the JVM [closed]
Closed 9 years ago.