Why would you not want to take advantage of the slower burning powders in a rifle?
One of the persistent myths in reloading is that you use "fast" powders for short barrels and "slow" powders for longer barrels. The truth is that the preponderance of internal ballistics transpires within a very short distance of bullet travel, with pressures beginning to decline from their peak in just a few inches. To put it very succinctly: The powder that generates the best velocity from a 6" pistol barrel is the same powder that will generate the best velocity from a 22" rifle barrel. It's just that the rifle-length barrel will create more velocity.
.
My understanding of this is that what you said above is true for a given charge (i.e, same charge in both the pistol and rifle), But if that charge is the maximum charge for that powder (to obtain the highest velocity in short barreled weapon), that you might be able to select a slower burning powder for the rifle and use more of it to gain even more velocity by utilizing the longer barrel.