In most basic terms, porting refers to "holes" that are machined into the top of the barrel to allow gases to vent upwards.
Compensators are external devices fitted to the muzzle to accomplish the same thing.
Compensators are external devices fitted to the muzzle to accomplish the same thing.