This matches my experience perfectly. I used to smoke weed about once a month when when I was a teenager, and I noticed that I could observe mild cognitive impairments for about a week after smoking. They were fading gradually during those days.
To illustrate, the next day after smoking I would occasionally notice that it takes me two times longer than usual to understand the task in school textbook and sometimes I could even loose the thread in a conversation. I also would catch my mind "frozen" in some thought, like "why can't the government just print all the money it needs?". Usually the next second you'd move to "ah, because inflation", but in that case it'd just "stand" at place.
On subsequent days it'd become less severe, and on day 5 and later I'd only notice that I forget why I came to the kitchen more often than usual. After about a week I was not able to spot anything unusual. This was actually quite scare and was one of the reasons I eventually quite entirely.
Another reason by the way was that I don't really find the effect pleasant or relaxing like many do. I fact, weed induces paranoia, thought loop and other unpleasant effects in my mind. The same is true for alcohol and lots of other drugs, so maybe my case is a bit more severe than regular.