I've only done one "endurance" event, a 40 mile bike through hills. I did the whole "don't eat much" and then skimped on my break and goop in the last ten miles. I made it, but I crashed hard, metaphorically.
At that time I was in deep keto with lots of training on water also.
Now I am on paleo (with eventual natural carbs and not watching my ketone blood levels anymore) and intermittent fasting - the effect is even better.
(After lots of experiments on myself I have realized that deep keto mode is naturally for prolonged fasting, so enforcing it with fats intake is a perversion)