People who eat very close to their bedtime are likely to have bad quality sleep. But it's also hard to go to sleep when you're hungry. It will take two weeks or so to retrain your brain so that you don't feel hungry and that's exactly what people experience once they know this is going to get better.