Why manual memory management?

Are there plans for automatic memory management?

What are the benefits of manually managing memory ... does it save memory eventually?

I noticed in .Net Windows applications - they are very sluggish - is this partly due to the garbage collector not working properly?

+2


a source to share


3 answers


Are there plans for automatic memory management?

On Mac - garbage collection already at 10.5.

On iPhone, no (since version 4.0).



What are the benefits of manually managing memory ... does it save memory eventually?

See When NOT to use garbage collection?

0


a source


The advantages of manual memory management are mainly that you can specialize memory management specifically for your application, which makes it optimal and makes it "easy" to optimize (for size and speed).

Automatic memory management is useful when it's not necessary, and even C ++ comments on the fact that (there are plans to add an extra garbage collector in C ++), but sometimes you really need to control what goes on behind the scenes because you have more view kind of application than any compiler or garbage collector.



The choice between both is certainly very powerful, but not available in most languages.

0


a source


For real-time systems, garbage collection can adversely affect the responsiveness of a program. Weir and Noble discuss some of these issues in their book Small Memory Software, and you can read about them at the end of this section of their book. In many cases, programmers simply choose their own memory management routines that solve these problems.

0


a source







All Articles