There have been almost an exhausting number of debates over the years on just this very thing....24”vs 26” barrel for 300Weatherby Mag, Barrel length for Magnum calibers, etc.

And the bottom line is you will sacrifice somewhere in the neighborhood of 60-100fps. Possibly a bit more if you have a very short 22”. Even still it will generate more energy than the 30-06.