Regenerate the DYLD and XPC caches on macOS

On occasions, usually after huge software updates, the shared caches are left in non-optimal state, and the system seems to be a bit sluggish. Rebuilding of the caches may resolve the problem:

sudo update_dyld_shared_cache -force
sudo /usr/libexec/xpchelper --rebuild-cache

The Mac needs to be restarted afterwards.

Sometimes, indexing of the Mac’s content cause a permanently high CPU load, which may also be the cause for a slow system. In this case, it would be good to rebuild the index as well:

sudo mdutil -E /

Copyright © Dr. Rolf Jansen - 2018-12-25 15:37:57

Discussion on Twitter: 1082836400033157121