studying all night long wont really help you learn a topic long-term. first, set a sleep schedule(make sure you get at least 7 hours of sleep a day, 8 is recommended). second, drink plenty of water. third, for studying, study for one hour, take a 20 minute break, study for another hour, repeat until you hit your studying goal. this could be any time.