In general, the less files and the more free space you have on the partition, the faster and better a defragmentation works. It might even help to move some big files to a different partition temporarily, and move them back after the defrag is finished.