Catfish, you get higher velocities in longer barrels because the pressure has longer to work on the bullet. One reason you might be getting powder residue in your barrel is the resistance of the bullet to acceleration. By that I mean; in a pistol cartridge, a heavy crimp or heavier bullet allows the powders to more fully ignite, in a rifle cartridge, a heavier bullet, seating the bullet touching the rifling or even a crimp will also offer resistance. The powders still burn essentially at the chamber.