The suggestion that you will get higher velocities with a faster powder in a short barrel is fantasy incarnate.
I have experimented with this many times, and the powder that gives the best velocity in the longer barrel will be the powder that gives the best velocity in the shorter barrel also.
For example. I owned a M700 Carbine [18.5" barrel] in 30-06. With the 180 grain Hornady FB and IMR 4064, the best I could do was 2555 avg, before pressure signs showed.
This same rifle with Norma N205 and the same bullet made 2702 avg. With the older long grain H4831, I got 2672 avg. The slower powders still worked the best, velocity-wise.
As has been pointed out, the muzzle flash increased, and obviously the noise level increased.
In the 30-06, the velocity loss is nowhere near 100 feet per second per inch of shorter barrel. [more like 25-30 fps per inch]
Regards, Dave.