What is the temporary, inefficient energy source generated by slow gravitational shrinking?

Answer

Kelvin-Helmholtz mechanism

An object can radiate light purely from the heat generated by gravitational contraction through the Kelvin-Helmholtz mechanism, but this process is temporary and inefficient compared to fusion.

What is the temporary, inefficient energy source generated by slow gravitational shrinking?
astronomynuclear fusionstarcelestial bodyObject