I would think that would depend on how much it was or had to be compressed.
Tim
Pulling this from my memory banks from 1979. . . Formula for torsion angular deflection is:
Tau = (T * L) / (J * G)
Tau is the angle of rotation in the twisted member
T = Torque applied
L = Length of the member
J = Polar moment of inertia (function of shape or (Pi X D^4)/32 for a round rod - I did look that up)
G = Modulus of rigidity (Material property, empirically derived by twisting a known section of a known material)
You are correct about the amount the spring is being compressed. Springs can be most any shape, mostly depends on the application. The 1967 Oldsmobile Toronado had a torsion bar (straight spring) for the front suspension instead of the typical coil spring. Spring calculations generally are done assuming a straight rod as a coil spring "behaves" the same.
For the calculation, if you want the angular deflection to be the same (Tau is constant), doubling the length of the spring (for example) would require the Torque applied (T) to be 1/2 the original value so (T * L) is the same. Naturally, you could play with the diameter of the spring wire and/or the material to change the angular twist at a given load/torque too.
Makes my head hurt trying to recall some of this stuff so take what I have here with a grain of salt.
Bruce