We know the dwell time is less on a mid length, and as such, less gas is directed into the tube. Also, with the tube being longer, there is more room for gas to expand. If you account for the difference in gas volume increasing the diameter of a carbine gas tube so that it had the same volume as a mid length tube would result in identical performance
