Finally got around to pulling my old Whirlpool electric dryer out to clean behind it, and wow. The previous owners had it hooked up with white plastic flex duct, the cheap ribbed kind, and it ran up through a hole cut in the kitchen soffit to vent outside. The tube was crushed in two spots where stuff had been shoved against it, and when I pulled it off there was a chunk of lint packed in the low point that came out like a soggy felt brick. Ended up swapping it for smooth metal duct and metal flex for the little connector piece behind the machine, secured with foil tape at the joints instead of screws so lint has fewer places to snag. Took way longer than expected because I had to fish the new duct up through the soffit, but the difference is already noticeable. Loads that used to need the extra time setting are finishing on the normal cycle now.
The weird part was the outside vent itself. The cover had come loose from the overhang and was basically hanging by the duct, with a ragged gap around it where it used to sit. Birds could have gotten in there, or the exhaust was just dumping into the space behind the soffit panel. Screwed it back up properly and sealed the gap with exterior caulk.
If your dryer is taking forever to dry, go look at the vent path before you blame the machine. Ours looked fine from the laundry room, it was everything hidden up top that was the problem.