The ratio between the cylinder volume and the inner barrel volume is known as the volume ratio. This ratio partly determines the speed that the bb exits the barrel. When the ratio is too low, the bb will not have enough power to run through the barrel optimally. When the ratio is too, higher than necessary air pressure will apply spin to the bb in a rather random direction.
This app helps you find the proper cylinder type based on inner barrel length.