v.25.5Performance Improvement

Avoid extra copying of the block during

Avoid extra copying of the block during insertion into Compact part when possible. #79536 (Pavel Kruglov).