Fixed #23745 -- Improved migrate speed

Of course, commit c7ea633 will not be eventually included, it only serves to measure performance.
Is there a reason for this conditional import? If it's the case I think a comment should be added.