I think Anschutz was the first one making rifling for only 17 inches and then it was only a tube (for peeep sights), so they figure out that after 17 inches (in 22) there is no gain for the bullet, I agree that the shorter barrel the smaller time for the bullet to leave it, but for our game if you have a good follow through then - it does not matter if it is 17 or 24 inches, by the way I did not see many guns above 24 inches - lets specify 24 inches of rifling, usually custom 22s are around 19 or 20 inches rifling and then it is only a tube.
for HP is a different story - because you can gain higher vel fom a longer barrel - so for sure in HP I would like to shoot more than 24 inches
I hope it hlep you, if not then you just got confuseed as i am right now -so it is time to end...............
have a good one!!!