Remember how far you went before you bonked and eat long before that. I save the sweet stuff until just before the end (like of a century) myself. And have eaten something savory long before then. But I've always drank when thirsty and not before unlike the eating.