In a study out of the UK, 700 twins and 400 non-twins had their blood sugar and blood fats measured in response to food. It found that different people respond differently to different foods, even the twins.
This means that genetics don’t determine your optimal diet. Lifestyle was much more telling at how a body responds to foods.
If you’ve had genetic testing done you’ll still have to figure it out by trial and error. Find out what works and stick to it.
This doesn’t mean personalized diets will never exist. It just means they will have to be much more individualize. What’s more individualized than genes though? A complete picture of you, with the help of AI.
If you were to feed your genome, AND your every measurable like sleep, exercise, and gut microbes, then it might be possible to create a specific diet tailored for you. This level of data collection isn’t possible now but that doesn't mean that in the future it won’t be possible.
A couple of thoughts about such a level of technology:
1) Astronauts could have optimized nutrition on spaceflights. Hopping between planets isn’t an easy task, and if there was a way to feed all possible data to an AI then there could be a diet catered to minimize loss of muscle mass.
2) The people who can afford it will pay for it, leaving the less fortunate to their ill-health. This could be another way for society to separate into the haves and have-nots, even more so than simply money. Increased health would mean more time to accumulate more wealth with longer lives, increased accessibility to partners, and higher levels of productivity during waking hours.
There’s no way to know how long this level of tracking could take, but I would imagine the AI necessary would already exist and it would be a question of scale.