As a person that often exhibits characteristics and symptoms of depression (but has never been officially diagnosed), I find that staying awake for well over a day can clear my symptoms and reset my brain. I Scott Alexander has written an essay on this [1].