It's been three years, but a very weird three years (as is probably the case for most people) because of the pandemic. He was unable to self isolate due to his job, and was around hundreds of people daily. I worked from home and self isolated for about a year and a half. There was maybe a handful of times where we could work out ways to spend time together for a few days to a week at a time safely over that year and a half, but for the most part we barely saw each other except in video calls. So I don't think that three years of real time really amounted to three years of relationship time.
Good point about job searching vs coding, I think you're right.
The other factor for me is that job searching is not like coding: it's a series of separate tasks/decisions/evaluations, rather than me trying to immerse myself in a problem or system, so interruptions or distractions aren't nearly as costly; I'm not going to go into flow state from job searching. And a lot of the difficulty comes from the emotional aspect, so I found having someone to talk/vent to about it very useful.