You should maintain a minimum gap of 2 to 3 hours between sleep and meals, especially if you have had heavy meals. This much time is needed by your body to digest the food into smaller particles.