If your PC is taking too long to boot, it's probably because you have far too many programs running at startup. It's easy to reduce these and it will make your PC launch noticeably faster. Make sure you research what you are turning off as some processes might be needed by third party programs you have installed.
Windows 8 and onward: Open the task manager (Ctrl + Shift + Esc) and head to the startup tab to configure what programs you want to launch with your system.
Windows 7 and prior: Open run (Windows key + R) and enter msconfig to access a window with a similar startup section.
macOS: Go to System Preferences > Users & Groups > Select your user and click on the Login Items tab. You can remove or hide startup applications from here.