First off, please share what OS you are using.
Yeah, if it's taking 38 hours to do disk cleanup, then you might be past the point of no return. In which case a format and reinstall will bring you back and might end up being more efficient in terms of saving time.
(Note, if you're using Windows XP and disk cleanup is getting stuck on a step such as "compress old files", you can do
start -> run -> cleanmgr.exe /sageset:1 to set the options for a run of disk cleanup and then
start -> run -> cleanmgr.exe /sagerun:1 to run with the options you just set. This might also work for newer versions of Windows, but I am not familiar with them.)
Assuming it's Windows, I would go into the taskbar and close all nonessential programs. Then run Task Manager and close all of the nonessentials that are sucking up your memory. Then I would go completely through all steps in a comprehensive
malware removal guide. (If you suspect there is ANY chance your computer has malware, as the guide states, it is not a fix for slow computer.) As for basics of gaining space and speed, uninstalling unused/old programs, regular usage of
CCleaner, and defragmenting on a regular basis are all important. More advanced users may want to disable unecessary
Windows services, look into replacing memory-hog programs with more lightweight versions (for example, using something like Trillian instead of multiple messaging clients), use more powerful registry scanners and a registry defragmenter, overclocking, spend hours
tweaking every setting in Windows for max performance, etc.
None.