Force Windows to Unload DLLs from Memory to Increase PC Performance

You can increase PC performance by forcing Windows to Unload DLLs from
Memory. Windows Explorer caches DLLs (Dynamic-Link Libraries) in memory
for a period of time after the application using them has been closed.
This can be an inefficient use of memory on low memory systems, and may
cause problems or delays for programmers developing with Windows DLL
files. Using following method you can force Windows to unload DLLs from
memory to free some more system resources.
Open your registry and find the key

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
Create a new sub-key named ‘AlwaysUnloadDLL’ and set the default value
to equal ’1′ to disable Windows caching the DLL in memory.
Restart Windows for the change to take effect.
Registry Settings

System Key: [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerAlwaysUnloadDLL]
Value Name: Default
Data Type: REG_SZ (String Value)

Leave a Reply