I read in a different thread (How to specify command to always run as root?) that using the purge
command in Terminal to free memory is not a good idea. Does anyone know an alternative way to do this without installing third-party software? This is a curiosity based question, I don't mind if it's a complicated process, because I already have third-party software to clean memory. Thanks.
EDIT (maybe I wasn't clear in my question): Sometimes I want to speed up my Mac because too much memory is being used (for example immediately after closing a memory-consuming app). The question is: how would I quickly clean and retrieve memory to give to other tasks? Do I have to wait for the computer itself to do this or can I also do it manually?