EdK,
The powder in a small arms cartridge burns completely in the first few inches of the barrel. The flash is caused by super heated gasses and carbon that is exiting from the barrel not powder that is unburned. The shorter the barrel is allows more of this to exit while it is still hot enough to be seen. Powders are selected by the available powder space, the weight of the bullet used and the SAAMI pressures accepted. That is why the same powders that produce the highest velocity in a 26 inch barrel produce the highest velocities in a shorter length barrel.
No matter which powder you use, if you use near maximum pressure you will have the same blast from the release of that pressure as the bullet exits. Faster burning powders will slightly less pressure on exit due to their faster pressure curves but because of that faster curve they give lower velocities because they do not push the bullet with high pressure for as long as the slow burning powders. (the average push is less for fast powders than it is for slow powders) Also peak pressures must remain at or below the SAAMI standard.
PaulS