You have a major uncontrolled variable in your comparison of 22 or 25 working better in different length barrels: you changed the cartridge when you built the long barreled gun. Going to a smaller bore on the same size case is pretty much the recipe for needing a slower powder to get better velocity.