This is a good process to ensure you don’t hire anyone who is currently employed. I would not sign up for this even if I was between jobs unless I was desperate. I don’t mind coding challenges, etc, but the first few weeks at any job is mostly scut work getting things set up, meeting people, etc.
I was sort of being facetious with the 40 hours thing. Nobody really gets 40 hours of interaction of a candidate before hiring. More typical is closer to 5-8, which means they can make a decision in a single day.
Edit: even an intense 6-interview loop including a "sell" dinner can be done in a day if scheduled properly. The multiple weeks thing is entirely poor scheduling on the part of the company.
3 tech interviews, lunch with team or other colleague, followed by general corporate HR interview and a "sell" session all fit neatly into a single business day.