Do a search for "tuned pipe" and find a picture of one. The reason people don't have them on their work saws is because of the size. The reason they have to be that size is for the pulses to be timed properly.
There is an inlet pipe, an expanding cone, a reducing cone, and an outlet.
The opening of the exhaust port creates a positive pulse. When it hits the end of a pipe, it reflects a negative pule that travels back to the exhaust port. The duration of the pulse can be increased by having a cone instead of an abrupt ending, which also weakens the pulse. This negative pressure helps to scavenge the cylinder. It works so well that charge is "pulled" into the system.
At the same time, the positive pulse continues towards the outlet. If the pipe is sealed, the positive wave is reflected back. Again, a cone will lengthen the duration of this positive pulse at the expense of the strength of the pulse. This positive pulse forces the charge back into the cylinder, basically acting like a supercharger.
The narrow outlet (or "stinger") is a restriction that is designed to produce some backpressure to help with the effect of the positive wave.
The only way to time the negative scavenging wave and the positive supercharging wave is to place the cones at the right distances in the exhaust path. Those distances are too far down the path to be practical for a chainsaw.