Concept:
When a moving block compresses a spring on a frictionless surface, the kinetic energy of the block converts completely into the potential energy of the spring.
\[
\text{Kinetic Energy} = \text{Spring Potential Energy}
\]
Thus,
\[
\frac{1}{2}mv^2 = \frac{1}{2}kx^2
\]
Step 1: Relate compression with velocity.
From the energy conservation equation:
\[
\frac{1}{2}mv^2 = \frac{1}{2}kx^2 \implies x^2 = \frac{m}{k}v^2
\]
Taking the square root on both sides:
\[
x = v \sqrt{\frac{m}{k}}
\]
Hence, the compression of the spring \(x\) is directly proportional to the velocity \(v\) (\(x \propto v\)).
Step 2: Consider the velocity is doubled.
If the new velocity \(v' = 2v\), the new compression \(x'\) will be:
\[
x' \propto 2v
\]
Since \(x \propto v\), it follows that:
\[
x' = 2x
\]
Step 3: State the final result.
The new compression of the spring becomes
\[
\boxed{2x}
\]