I'm on my 1888th day after I changed my way of eating, and I hate when this happens to me, I mean, losing the ketosis because something I ate had too much sugar. It happens in some asian restaurants where they cook salmon with sugar and they don't tell you, in some places they add sugar to most japanese salads / wakame. I get bloated and retain water, I get out of focus easily, and I'm tired for the most part of the day. One day a friend of mine thought he had vodka (which does not kick you out of ketosis) instead he gave me some transparent licor, very sweet. I had the most profound high on sugar of my life, with just one shot, I had a high rush of feelings and pleasure, increased heart rate, I wanted to go out and party. I had nightmares that night, in the dreams I needed to run or escape. It took me 72h to fully recover. That said, I've written the most creative pieces of code, mostly backends in functional programming while on ketosis