What's funny about that is that in literally eight years, all three of them were gone for different reasons
Cantor - 2014, Primaried, was the House Majority Leader
Ryan - 2018, Retired, only one to become Speaker for a full term
McCarthy- 2023 (technically 2024), resigned, stopped from being Speaker in 2015 then became House Majority then House Minority Leader, became shortest Speaker in history.
McCarthy is the third* shortest Speaker in history.
Theodore M. Pomeroy was Speaker for only a day, acting as a placeholder between when the previous Speaker was sworn in as Vice-President and when he left office the next day.
Michael C. Kerr is the second shortest holding the position for 257 days before his death. McCarthy was Speaker for 269 days.
*(Technically Mike Johnson has only been Speaker for 42 days and thus in theory could "beat" McCarthy and Kerr, so McCarthy is technically the fourth shortest Speaker as of now.)