Been- I worked in a Facility that gives a good example- we ahd a pipe tunnel 3 miles long with saturated steam at 150 psig. Every few hundred feet we had an expansion joint on the line- 12"-10" and 8" joints. The pipe decreased as it came closer to my Facility's end of the tunnel. The joints measured 12" x 4.5'. Basically bothe ends of the joint contained about eight rings of 5/8" packing to make the seal and allow the pipe to expand from either direction. Within a few feet of each, there is a pipe support anchored to floor and ceiling with horizontal members that have sleeves welded on so that pipe can slide over the support. The pipe is never welded to a stationary support, it is allowed to expand and contract smoothly over the length of the run.There were no bends or loops in this run of three miles it was all linear expansion. If you have the room you could make an expansion loop to take up the expansion,but you would be talking about substansial space in this case. Expansion loops are virtually no maintenance, where as joints are a maintenance item. Space is a sustansial predicator of choice.When going through a wall, we use a sleeve and expandable foam or intumessent firestop. Never locate a joint at a wall.