Hammering out a cannon barrel will compress the material, there was a method used in the 18th Century in Spain where old horse shoes were forge welded into some very fine and very strong gun barrels .... the compression the horse shoes got while in use changed the grain structure and made the metal very tough...... so compressing the metal of your barrel should actually make it stronger...,.