返回列表 发帖
QQ使用的那个函数叫SetProcessWorkingSetSize,编程的朋友到MSDN上查一下就知道我没有胡说了

这不算什么技术了,也不是本质上节省内存占用
Using the SetProcessWorkingSetSize function to set an application's minimum and maximum working set sizes does not guarantee that the requested memory will be reserved, or that it will remain resident at all times. When the application is idle, or a low-memory situation causes a demand for memory, the operating system can reduce the application's working set. An application can use the VirtualLock function to lock ranges of the application's virtual address space in memory; however, that can potentially degrade the performance of the system.

注意最后一句,这可能会降低系统性能
且放白鹿青崖间、须行即骑访名山

TOP

返回列表