One of the things that can slow down a Microsoft Windows computer is hard drive fragmentation. This is where parts of a file are spread all over the drive and not in one contiguous piece. If you you have a sold-state drive, they don’t need defragged(optimized).
Apple or Linux computers don’t need defragged and incidentally they don’t have optimizing (defragging) tools included with these two operating systems.
Look for optimizer under hard drive tools for Windows 10. Older Windows OSs call it Defragmenter.