Here are some recommendations that can help solve the problem with slow loading and opening programs on iMac Retina 4K:
Check the amount of free disk space. If the drive is more than 90% full, the computer may slow down. To free up space, you can move files to another disk or external storage device, and then delete unnecessary files from the boot disk.
Close all unused applications. You can find out how much memory is used by your computer and applications using the System Monitoring application.
Update the software. As a rule, developers create and optimize their applications for the latest version of macOS.
Disable program autoloading. The more programs you open automatically when you log in, the slower your Mac starts up. To disable auto-upload, open "System Settings", go to the "General" section, then to "Login objects". Select the input objects and click on the "Minus" button to disable the automatic opening of the program.
Check the disk for errors. The speed of the Mac may decrease due to errors in the operation of the drive. You can check their availability using the Disk Utility.
If the problem persists, it is recommended to contact the service center.