For maximum growth opportunity, what is optimal time to stay within one company before moving?
Unless the refreshers match/exceed your initial hiring RSU package as and/or you don't get promoted, your TC will suffer so then it's time to move.
What’s 2> years?!? Do you mean <2 years?
When your learning slows down, switch.
Going by Blind's collective intelligence someone joining Google in 2001, needs to leave by 2003 and in the process lose out on 16 years of relentless growth. IMHO, you leave companies only when the other opportunity is unbelievably good or the current gig sucks. Changing companies for the sake of chasing TC is a fool's errand.
As if you can predict growth. And if you can, why not invest in company's stocks rather than working there.
Joining a rocketship like Google in 2003 and riding the wave gives rise to many opportunities. Imagine, Google went from a few hundred employees to over 100k employees. If you did a good job, your career trajectory would be exponential. Look at all the leaders at Google, they all stuck around for several years. If you want to make impact, you need to stick long enough to make big things happen.