Many independent studies have now shown that you consolidate your memory during sleep. That means if you don’t sleep well you lose a lot of what you studied. Getting an extra hour of sleep is probably more effective for learning and remembering that is repeating the same material one more time while you’re awake and tired.