Does the elasticity of spring and rope disappear immediately? Can the elasticity of spring be regarded as constant? Why does the book say that the spring force "can often be regarded as constant"?

Does the elasticity of spring and rope disappear immediately? Can the elasticity of spring be regarded as constant? Why does the book say that the spring force "can often be regarded as constant"?

The stretched (or compressed) spring cannot be restored to its original state in an instant