Your brain prefers simple sugar molecules — glucose to be specific — and when the brain doesn’t get glucose, it gets crabby and distracted. Since the body most easily creates glucose by metabolizing carbohydrates, it stands to reason that limiting carbohydrates could dampen cognitive function.