Yes, intermittent fasting seems to have good effects. I used to restrict eating to the period 11am to about 5pm, and I felt better. Now all I do is to avoid eating any food within three hours of going to bed. I don't know how reliable my Apple Watch really is, but my deep sleep ratings are much better when I stop eating after a light early dinner, and this makes some sense: if you are actively digesting food your heart rate is probably increased and generally your body can settle down. As you know, digesting food is a major activity.
Science has shown that the best quality sleep is achieved when core temperature drops about 3 degrees, and this is almost impossible when one has eaten a meal within an hour or two of going to bed.
Or if you live in a hot country. But that makes me suspicious of this finding - it should mean that everyone (without AC) in hot countries sleeps badly. I doubt that to be true though.