improve clone_from_slice performance