Ahh, finals week!! Hope it all went well.
Personally I wouldn't really recommend all nighters for revision. I pulled a few on my thesis, but revision... if you need to pull an all nighter, chances are you just haven't got time to learn everything you need to, so it just becomes very stressful. Stress works in your favour to a point but with that kind of thing I'd just be too miserable to learn. When I was revising I'd tend to set myself a goal (e.g. "be able to answer these past exam questions") then go with an "as long as it takes" approach.
I'd personally grab a couple of hours of sleep at some point, timing it so I have about 6 hours to cram before the exam. I can't cram much more in than about 4 hours of studying, plus 2 "contingency" hours for when you realise you really don't get it.
For maths I rewrote all of the proofs in plain English, then repeated them enough times to remember all the steps.
For memorising facts, I'm a fan of finding mnemonics and coming up with stupid phrases. I'd have them all written down and read them repeatedly outside exam room... then as soon as exam started, write down on scrap paper the ones that I know I'm likely to forget.
Make it something memorable though. I remember my housemate trying to memorise the 4 conditions for deadlock:
Mutual exclusion
Hold and wait
No
preemption
Circular wait
with something like "Mr Happy Penetrates Cunts". Charming, but... why would you remember that??
Mind you, I remembered it with "HP sauce". Yummy stuff. Mutual exclusion and circular wait are obvious. The other two are HP. HP sauce.
I didn't ever try drugs to improve my ability to study/stay awake. Would have done if I'd had the opportunity, but it never presented itself. I don't think it'd work very well for me though.... I hate hate hate it when my brain is 'going too fast' and I'm trying to concentrate. I get that even with too much coffee... so I save the stims for recreation
