All-nighters may provide a short-term burst, but they compromise long-term cognitive function.