SetProcessWorkingSetSize - What's the catch?

前端 未结 4 1451
离开以前
离开以前 2020-12-15 22:38

I found an article on About.com that tells you how you can manage your apps memory.

Here is the code:

procedure TrimAppMemorySize;
var
  MainHandle :         


        
4条回答
  •  囚心锁ツ
    2020-12-15 23:09

    This is the moral equivalent of pretending to the operating system that your machine is an permanent state of RAM crisis. The system knows how to manage its memory far better than you do, just let it get on with its job.

    It is, sadly, a very common mistake for people to worry when their system is using all of its RAM and all of its CPU. In reality you should be concerned if your system fails to make full use of its resources!

提交回复
热议问题